Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
merge-drivers
Advanced tools
Readme
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
TODO
The npm package merge-drivers receives a total of 347 weekly downloads. As such, merge-drivers popularity was classified as not popular.
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 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.