git-hooks.nix
git-hooks.nix copied to clipboard
use pre-commit install -c $STORE_PATH to get the generated coniguration file out of the worktree
pre-commit install -c $PATH allows to set a custom config path, which seems better than littering the worktree
Any suggestions where to put it?
well - ideally it would be part of a environment which gets a gc-root link into the git hook
that way after hook install everything will be clean