diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-12-27 22:16:21 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-27 22:16:21 +0300 |
commit | e87f9fc9d4ead0ec7f98c9493a9f2ad8c41cd6ee (patch) | |
tree | ee27b22b0950137d8f450d1ac95ddb67714df241 /Documentation/githooks.txt | |
parent | 0da2ba4880f971de2782f2d4cfcd68f9148d2860 (diff) | |
parent | ade546be4786637ba039478d6f027becb1160803 (diff) |
Merge branch 'es/worktree-checkout-hook'
"git worktree add" learned to run the post-checkout hook, just like
"git checkout" does, after the initial checkout.
* es/worktree-checkout-hook:
worktree: invoke post-checkout hook (unless --no-checkout)
Diffstat (limited to 'Documentation/githooks.txt')
-rw-r--r-- | Documentation/githooks.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt index b63f2ea860..f877f7b7cd 100644 --- a/Documentation/githooks.txt +++ b/Documentation/githooks.txt @@ -170,7 +170,8 @@ This hook cannot affect the outcome of 'git checkout'. It is also run after 'git clone', unless the --no-checkout (-n) option is used. The first parameter given to the hook is the null-ref, the second the -ref of the new HEAD and the flag is always 1. +ref of the new HEAD and the flag is always 1. Likewise for 'git worktree add' +unless --no-checkout is used. This hook can be used to perform repository validity checks, auto-display differences from the previous HEAD if different, or set working dir metadata |