Documentation/githooks: Explain pre-rebase parameters
Descriptions borrowed from templates/hooks--pre-rebase.sample. Signed-off-by: W. Trevor King <wking@tremily.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>
W. Trevor King committed
Feb 23, 2013 at 10:27 UTC
0414acc3651a8e3ad938336b596e3de85e5d5d33
1 file changed
+5
-3
Documentation/githooks.txt
+5
-3
@@ -140,9 +140,11 @@ the outcome of 'git commit'.
140
pre-rebase
141
~~~~~~~~~~
142
143
-This hook is called by 'git rebase' and can be used to prevent a branch
144
-from getting rebased.
145
-
143
+This hook is called by 'git rebase' and can be used to prevent a
144
+branch from getting rebased. The hook may be called with one or
145
+two parameters. The first parameter is the upstream from which
146
+the series was forked. The second parameter is the branch being
147
+rebased, and is not set when rebasing the current branch.
148
149
post-checkout
150
~~~~~~~~~~~~~