From: W. Trevor King Date: Sat, 23 Feb 2013 15:27:39 +0000 (-0500) Subject: Documentation/githooks: Explain pre-rebase parameters X-Git-Tag: v1.8.1.6~25^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0414acc3651a8e3ad938336b596e3de85e5d5d33;p=thirdparty%2Fgit.git Documentation/githooks: Explain pre-rebase parameters Descriptions borrowed from templates/hooks--pre-rebase.sample. Signed-off-by: W. Trevor King Signed-off-by: Junio C Hamano --- 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 ~~~~~~~~~~~~~