Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
merge-drivers
Advanced tools
Merge Drivers CLI: A command-line interface to conveniently manage custom git merge drivers
A command-line interface to conveniently manage custom git merge drivers.
Git offers the ability to define two types of custom merge drivers. The first one is global, accessible through ~/.gitconfig
. The second one is local, accessible through .git/config
. The problem is that the configuration of these drivers is not very convenient as neither of these solutions are versioned.
This CLI aims to solve this problem by providing a simple and intuitive interface to manage these drivers.
📚 Use Custom Merge Driver to Simplify Git Conflicts.
Merge drivers are defined within a configuration file that should be living at the root of your project named as .merge-drivers.yml
. This file is a YAML file that should contain a list of drivers (under merge-drivers
key). Each driver is defined by a key, name, and a driver (command). Here is an example of such a file:
merge-drivers:
yarn:
name: 'yarn merge driver'
driver: 'yarn install'
From there, you will be able to use the following commands:
Ideally, we would like to automate the installation of those merge drivers.
[!WARNING] It could be achieved by using a
prepare
script in yourpackage.json
file. However, it may not possible depending on your package manager (e.g., Yarn 2 and above don't executeprepare
, so you would want to look intopostinstall
, see Husky documentation for Yarn 2+ as a good reference).
Installs merge drivers based on the provided config.
[!NOTE] Automatically executes
clean
command before installing, unless--no-clean
is specified.
npx merge-drivers install [merge-drivers...] [--no-clean]
Uninstalls merge drivers based on the provided config.
npx merge-drivers uninstall [merge-drivers...] [--no-clean]
Cleans merge drivers by uninstalling the ones that are disabled based on the provided config.
[!NOTE] Automatically executed as part of
install
command, unless--no-clean
is specified.
npx merge-drivers clean
merge-drivers is MIT licensed.
FAQs
Merge Drivers CLI: A command-line interface to conveniently manage custom git merge drivers
We found that merge-drivers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.