OSDN Git Service

Documentation/githooks: Explain pre-rebase parameters
authorW. Trevor King <wking@tremily.us>
Sat, 23 Feb 2013 15:27:39 +0000 (10:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Feb 2013 08:13:11 +0000 (00:13 -0800)
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>
Documentation/githooks.txt

index b9003fe..e711cf1 100644 (file)
@@ -140,9 +140,11 @@ the outcome of 'git commit'.
 pre-rebase
 ~~~~~~~~~~
 
-This hook is called by 'git rebase' and can be used to prevent a branch
-from getting rebased.
-
+This hook is called by 'git rebase' and can be used to prevent a
+branch from getting rebased.  The hook may be called with one or
+two parameters.  The first parameter is the upstream from which
+the series was forked.  The second parameter is the branch being
+rebased, and is not set when rebasing the current branch.
 
 post-checkout
 ~~~~~~~~~~~~~