Skip to content

Commit 00e5d48

Browse files
Nanako Shiraishispearce
authored andcommitted
docs: describe pre-rebase hook
Documentation/git-rebase.txt talks about pre-rebase hook, but it appears that Documentation/git-hooks.txt does not have corresponding entry for it. Signed-off-by: Nanako Shiraishi <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent d09e2cd commit 00e5d48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/githooks.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ parameter, and is invoked after a commit is made.
130130
This hook is meant primarily for notification, and cannot affect
131131
the outcome of 'git-commit'.
132132

133+
pre-rebase
134+
----------
135+
136+
This hook is called by 'git-rebase' and can be used to prevent a branch
137+
from getting rebased.
138+
139+
133140
post-checkout
134141
-----------
135142

0 commit comments

Comments
 (0)