A fine collection of git hooks.
Find a file
2022-11-16 11:03:15 +01:00
config.d Update _init. Add configuration option. 2022-11-16 11:03:15 +01:00
custom.d Create base 2022-11-16 11:03:12 +01:00
data Create base 2022-11-16 11:03:12 +01:00
hooks Update _init. Add configuration option. 2022-11-16 11:03:15 +01:00
tools Create base 2022-11-16 11:03:12 +01:00
.gitignore Create base 2022-11-16 11:03:12 +01:00
install.sh Create base 2022-11-16 11:03:12 +01:00
LICENSE Create base 2022-11-16 11:03:12 +01:00
README.md Create base 2022-11-16 11:03:12 +01:00
uninstall.sh Create base 2022-11-16 11:03:12 +01:00

pinch

A pinch of Git pinches hooks

Pinch is a global Git hook manager. Its main use is to establish a modular hook system.

Requirements

  • A mostly POSIX-compatible OS
  • Bash >= 5.0
  • Busybox, Coreutils or alternatives
  • Git >= 2.9

Installation

To install pinch, clone this repository and execute install.sh. If there is different global hook configuration, pinch will remember it.

Similarly, in order to uninstall pinch, execute uninstall.sh. Previous configuration (if there was any) will be restored.

Debug mode

In order to enable debug messages, set PINCH_DEBUG to 1 as an environment variable before invoking Git hooks.

License

pinch is a free and open-source program distributed under the terms of the MIT license.