git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

use pre-commit install -c $STORE_PATH to get the generated coniguration file out of the worktree

Open RonnyPfannschmidt opened this issue 3 years ago • 2 comments

pre-commit install -c $PATH allows to set a custom config path, which seems better than littering the worktree

RonnyPfannschmidt avatar Sep 09 '22 08:09 RonnyPfannschmidt

Any suggestions where to put it?

domenkozar avatar Nov 04 '22 13:11 domenkozar

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

RonnyPfannschmidt avatar Nov 04 '22 15:11 RonnyPfannschmidt