diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-12-27 11:16:21 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-27 11:16:21 -0800 |
commit | e87f9fc9d4ead0ec7f98c9493a9f2ad8c41cd6ee (patch) | |
tree | ee27b22b0950137d8f450d1ac95ddb67714df241 /Documentation | |
parent | Merge branch 'lb/rebase-i-short-command-names' (diff) | |
parent | worktree: invoke post-checkout hook (unless --no-checkout) (diff) | |
download | tgif-e87f9fc9d4ead0ec7f98c9493a9f2ad8c41cd6ee.tar.xz |
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')
-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 |