summaryrefslogtreecommitdiffstats
path: root/Documentation/githooks.txt
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2013-02-23 16:27:39 +0100
committerJunio C Hamano <gitster@pobox.com>2013-02-24 09:13:11 +0100
commit0414acc3651a8e3ad938336b596e3de85e5d5d33 (patch)
tree302085e19c4c10c657eaf00adbfbe0f476669b43 /Documentation/githooks.txt
parentGit 1.8.1.4 (diff)
downloadgit-0414acc3651a8e3ad938336b596e3de85e5d5d33.tar.xz
git-0414acc3651a8e3ad938336b596e3de85e5d5d33.zip
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>
Diffstat (limited to 'Documentation/githooks.txt')
-rw-r--r--Documentation/githooks.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index b9003fed24..e711cf1a01 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -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
~~~~~~~~~~~~~