Skip to content

Commit

Permalink
Merge branch 'jc/post-checkout-doc' into next
Browse files Browse the repository at this point in the history
Doc update.

* jc/post-checkout-doc:
  doc: clarify how exit status of post-checkout hook is used
  • Loading branch information
gitster committed Sep 2, 2020
2 parents 1f8cd01 + 3100fd5 commit bb06b5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/githooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb06b5f

Please sign in to comment.