doc: clarify how exit status of post-checkout hook is used
commit3100fd55888ce742056cc998343c5fc9f89b2c55
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Aug 2020 21:45:11 +0000 (27 14:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Aug 2020 21:45:11 +0000 (27 14:45 -0700)
treec6ea389897a46caf5cae54536bf7dcffd116b62b
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc
doc: clarify how exit status of post-checkout hook is used

Because the hook runs after the main checkout operation finishes, it
cannot affect what branch will be the current branch, what paths are
updated in the working tree, etc., which was described as "cannot
affect the outcome of 'checkout'".

However, the exit status of the hook is used as the exit status of
the 'checkout' command and is observable by anybody who spawned the
'checkout', which was missing from the documentation.  Fix this.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/githooks.txt