Skip to content

Commit cd425a1

Browse files
committed
Merge branch 'mz/rebase-i-verify'
* mz/rebase-i-verify: rebase: support --verify
2 parents 6b236bf + 7baf9c4 commit cd425a1

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Documentation/git-rebase.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ which makes little sense.
279279
--no-verify::
280280
This option bypasses the pre-rebase hook. See also linkgit:githooks[5].
281281

282+
--verify::
283+
Allows the pre-rebase hook to run, which is the default. This option can
284+
be used to override --no-verify. See also linkgit:githooks[5].
285+
282286
-C<n>::
283287
Ensure at least <n> lines of surrounding context match before
284288
and after each change. When fewer lines of surrounding

git-rebase--interactive.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ continue continue rebasing process
2828
abort abort rebasing process and restore original branch
2929
skip skip current patch and continue rebasing process
3030
no-verify override pre-rebase hook from stopping the operation
31+
verify allow pre-rebase hook to run
3132
root rebase all reachable commmits up to the root(s)
3233
autosquash move commits that begin with squash!/fixup! under -i
3334
"
@@ -749,6 +750,7 @@ do
749750
OK_TO_SKIP_PRE_REBASE=yes
750751
;;
751752
--verify)
753+
OK_TO_SKIP_PRE_REBASE=
752754
;;
753755
--continue)
754756
is_standalone "$@" || usage

git-rebase.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ do
206206
--no-verify)
207207
OK_TO_SKIP_PRE_REBASE=yes
208208
;;
209+
--verify)
210+
OK_TO_SKIP_PRE_REBASE=
211+
;;
209212
--continue)
210213
test -d "$dotest" -o -d "$GIT_DIR"/rebase-apply ||
211214
die "No rebase in progress?"

0 commit comments

Comments
 (0)