summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03276d9)
raw | patch | inline | side by side (parent: 03276d9)
author | Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> | |
Mon, 22 Nov 2010 20:21:01 +0000 (21:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 23 Nov 2010 20:15:43 +0000 (12:15 -0800) |
Interactive rebase allows the '--verify' option to be passed, but it will
be ignored. Implement proper support for the option for both interactive
and non-interactive rebase by making it override any previous
'--no-verify'.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
be ignored. Implement proper support for the option for both interactive
and non-interactive rebase by making it override any previous
'--no-verify'.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt | patch | blob | history | |
git-rebase--interactive.sh | patch | blob | history | |
git-rebase.sh | patch | blob | history |
index 30e5c0eb14470a5f72174b1071eac79c55fb0c41..96680c84561c434c4cf3a00cfe958b21f18a3d8d 100644 (file)
--no-verify::
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>::
Ensure at least <n> lines of surrounding context match before
and after each change. When fewer lines of surrounding
index a27952d9fdfb517f684b7d304831bf74d0ce237b..4eabe54e36aece1d21d4e421416b48184b2f5a6b 100755 (executable)
abort abort rebasing process and restore original branch
skip skip current patch and continue rebasing process
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)
autosquash move commits that begin with squash!/fixup! under -i
"
OK_TO_SKIP_PRE_REBASE=yes
;;
--verify)
+ OK_TO_SKIP_PRE_REBASE=
;;
--continue)
is_standalone "$@" || usage
diff --git a/git-rebase.sh b/git-rebase.sh
index 10a238ae3cc942bc021db18195b7098e2866c266..7548f0cae4b21b8f645f0521258f579a081410e6 100755 (executable)
--- a/git-rebase.sh
+++ b/git-rebase.sh
--no-verify)
OK_TO_SKIP_PRE_REBASE=yes
;;
+ --verify)
+ OK_TO_SKIP_PRE_REBASE=
+ ;;
--continue)
test -d "$dotest" -o -d "$GIT_DIR"/rebase-apply ||
die "No rebase in progress?"