Merge branch 'mz/rebase-i-verify'

* mz/rebase-i-verify:
  rebase: support --verify
This commit is contained in:
Junio C Hamano 2010-12-12 21:49:51 -08:00
commit cd425a1585
3 changed files with 9 additions and 0 deletions

View File

@ -279,6 +279,10 @@ which makes little sense.
--no-verify:: --no-verify::
This option bypasses the pre-rebase hook. See also linkgit:githooks[5]. This option bypasses the pre-rebase hook. See also linkgit:githooks[5].
--verify::
Allows the pre-rebase hook to run, which is the default. This option can
be used to override --no-verify. See also linkgit:githooks[5].
-C<n>:: -C<n>::
Ensure at least <n> lines of surrounding context match before Ensure at least <n> lines of surrounding context match before
and after each change. When fewer lines of surrounding and after each change. When fewer lines of surrounding

View File

@ -28,6 +28,7 @@ continue continue rebasing process
abort abort rebasing process and restore original branch abort abort rebasing process and restore original branch
skip skip current patch and continue rebasing process skip skip current patch and continue rebasing process
no-verify override pre-rebase hook from stopping the operation no-verify override pre-rebase hook from stopping the operation
verify allow pre-rebase hook to run
root rebase all reachable commmits up to the root(s) root rebase all reachable commmits up to the root(s)
autosquash move commits that begin with squash!/fixup! under -i autosquash move commits that begin with squash!/fixup! under -i
" "
@ -749,6 +750,7 @@ do
OK_TO_SKIP_PRE_REBASE=yes OK_TO_SKIP_PRE_REBASE=yes
;; ;;
--verify) --verify)
OK_TO_SKIP_PRE_REBASE=
;; ;;
--continue) --continue)
is_standalone "$@" || usage is_standalone "$@" || usage

View File

@ -206,6 +206,9 @@ do
--no-verify) --no-verify)
OK_TO_SKIP_PRE_REBASE=yes OK_TO_SKIP_PRE_REBASE=yes
;; ;;
--verify)
OK_TO_SKIP_PRE_REBASE=
;;
--continue) --continue)
test -d "$dotest" -o -d "$GIT_DIR"/rebase-apply || test -d "$dotest" -o -d "$GIT_DIR"/rebase-apply ||
die "No rebase in progress?" die "No rebase in progress?"