aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-12-27 11:16:21 -0800
committerJunio C Hamano <gitster@pobox.com>2017-12-27 11:16:21 -0800
commite87f9fc9d4ead0ec7f98c9493a9f2ad8c41cd6ee (patch)
treeee27b22b0950137d8f450d1ac95ddb67714df241 /Documentation
parent0da2ba4880f971de2782f2d4cfcd68f9148d2860 (diff)
parentade546be4786637ba039478d6f027becb1160803 (diff)
downloadgit-e87f9fc9d4ead0ec7f98c9493a9f2ad8c41cd6ee.tar.gz
git-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.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index b63f2ea86..f877f7b7c 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