summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-28 22:49:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-28 22:49:56 (GMT)
commit1779d181b51252ff853b00b6ad95c6641f7bef2b (patch)
tree0bbfd2863415e121f930b93493ea11ae472915e7 /Documentation
parentb07c72100f88315d6abef235cee7428fca0886b5 (diff)
parentf7139e7cc2d97a18f1bccfe48c4a270372917c91 (diff)
downloadgit-1779d181b51252ff853b00b6ad95c6641f7bef2b.zip
git-1779d181b51252ff853b00b6ad95c6641f7bef2b.tar.gz
git-1779d181b51252ff853b00b6ad95c6641f7bef2b.tar.bz2
Merge branch 'en/rebase-doc-hooks-called-by-accident'
"git rebase" happens to call some hooks meant for "checkout" and "commit" by this was not a designed behaviour than historical accident. This has been documented. * en/rebase-doc-hooks-called-by-accident: git-rebase.txt: add another hook to the hooks section, and explain more
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-rebase.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
index bed500f..2de8620 100644
--- a/Documentation/git-rebase.txt
+++ b/Documentation/git-rebase.txt
@@ -722,9 +722,17 @@ Hooks
~~~~~
The apply backend has not traditionally called the post-commit hook,
-while the merge backend has. However, this was by accident of
-implementation rather than by design. Both backends should have the
-same behavior, though it is not clear which one is correct.
+while the merge backend has. Both have called the post-checkout hook,
+though the merge backend has squelched its output. Further, both
+backends only call the post-checkout hook with the starting point
+commit of the rebase, not the intermediate commits nor the final
+commit. In each case, the calling of these hooks was by accident of
+implementation rather than by design (both backends were originally
+implemented as shell scripts and happened to invoke other commands
+like 'git checkout' or 'git commit' that would call the hooks). Both
+backends should have the same behavior, though it is not entirely
+clear which, if any, is correct. We will likely make rebase stop
+calling either of these hooks in the future.
Interruptability
~~~~~~~~~~~~~~~~