diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-03 13:22:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-03 13:22:34 -0700 |
commit | 558abd28b6851f370edc902b483e079a3ac255ab (patch) | |
tree | 0b524b111b53d2a9487fb1c45b50dd7812965487 /githooks.txt | |
parent | cf8aeaf7e987e73615910d6961e38f20a8b0b550 (diff) | |
download | git-htmldocs-558abd28b6851f370edc902b483e079a3ac255ab.tar.gz |
Autogenerated HTML docs for v2.28.0-450-g3a238
Diffstat (limited to 'githooks.txt')
-rw-r--r-- | githooks.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/githooks.txt b/githooks.txt index 31b601e4b..cf95d6d02 100644 --- a/githooks.txt +++ b/githooks.txt @@ -193,7 +193,9 @@ worktree. The hook is given three parameters: the ref of the previous HEAD, the ref of the new HEAD (which may or may not have changed), and a flag indicating whether the checkout was a branch checkout (changing branches, flag=1) or a file checkout (retrieving a file from the index, flag=0). -This hook cannot affect the outcome of `git switch` or `git checkout`. +This hook cannot affect the outcome of `git switch` or `git checkout`, +other than that the hook's exit status becomes the exit status of +these two commands. It is also run after linkgit:git-clone[1], unless the `--no-checkout` (`-n`) option is used. The first parameter given to the hook is the null-ref, the second the |