Skip to content

Commit

Permalink
Documentation/githooks: Explain pre-rebase parameters
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
W. Trevor King authored and Junio C Hamano committed Feb 24, 2013
1 parent dff9f88 commit 0414acc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Documentation/githooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~
Expand Down

0 comments on commit 0414acc

Please sign in to comment.