diff options
| author | 2026-05-19 16:50:52 +0100 | |
|---|---|---|
| committer | 2026-05-19 16:50:52 +0100 | |
| commit | 0fc39faa90f97db24043017a845f1754b4bb8b84 (patch) | |
| tree | 066acfd99d41d2f4ebf0d3716ae5f28a06801aa5 /just-lib.sh | |
| parent | 67868f51bbab5bc3ef5c8ba15433ba401a297f1a (diff) | |
| download | dotfiles-0fc39faa90f97db24043017a845f1754b4bb8b84.tar.gz dotfiles-0fc39faa90f97db24043017a845f1754b4bb8b84.tar.bz2 dotfiles-0fc39faa90f97db24043017a845f1754b4bb8b84.zip | |
feat(git): per-clone hook override at .git/hooks-local/
Adds an untracked per-clone override layer to the hook dispatcher.
Lookup order is now:
1. <git-dir>/hooks-local/<name> — untracked, per-clone, ignored by git
2. <repo-top>/.githooks/<name> — tracked, shared with teammates
Use case: a shared repo ships a .githooks/pre-commit you want to
locally replace without modifying the tracked file. Drop your hook in
.git/hooks-local/<name> (chmod +x) and the dispatcher will run it
instead — the global commit-msg trailer-strip and pre-push gate still
run on top.
If neither override exists, only the global user-level logic runs.
Diffstat (limited to 'just-lib.sh')
0 files changed, 0 insertions, 0 deletions
