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.html | |
parent | cf8aeaf7e987e73615910d6961e38f20a8b0b550 (diff) | |
download | git-htmldocs-558abd28b6851f370edc902b483e079a3ac255ab.tar.gz |
Autogenerated HTML docs for v2.28.0-450-g3a238
Diffstat (limited to 'githooks.html')
-rw-r--r-- | githooks.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/githooks.html b/githooks.html index f6c1a9756..29c5b03bd 100644 --- a/githooks.html +++ b/githooks.html @@ -901,7 +901,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 <code>git switch</code> or <code>git checkout</code>.</p></div>
+This hook cannot affect the outcome of <code>git switch</code> or <code>git checkout</code>,
+other than that the hook’s exit status becomes the exit status of
+these two commands.</p></div>
<div class="paragraph"><p>It is also run after <a href="git-clone.html">git-clone(1)</a>, unless the <code>--no-checkout</code> (<code>-n</code>) 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. Likewise for <code>git worktree add</code>
@@ -1304,7 +1306,7 @@ running passing "1", "1" should not be possible.</p></div> <div id="footer">
<div id="footer-text">
Last updated
- 2020-07-24 16:13:27 PDT
+ 2020-09-03 13:19:53 PDT
</div>
</div>
</body>
|