summaryrefslogtreecommitdiff
path: root/git-rebase--interactive.sh
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2010-07-14 11:59:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-14 15:47:29 (GMT)
commitdd1e5b313a0aef5d22cd9909c14e4b1b6dcbea79 (patch)
tree6689ef65a903c6ba9e4e765ee9135c5902cbf7d6 /git-rebase--interactive.sh
parent449aeb10d5d28083199f82c444b55a03c545e956 (diff)
downloadgit-dd1e5b313a0aef5d22cd9909c14e4b1b6dcbea79.zip
git-dd1e5b313a0aef5d22cd9909c14e4b1b6dcbea79.tar.gz
git-dd1e5b313a0aef5d22cd9909c14e4b1b6dcbea79.tar.bz2
add configuration variable for --autosquash option of interactive rebase
If you use this feature regularly you can now enable it by default. In case the user wants to override this config on the commandline --no-autosquash can be used to force disabling. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--interactive.sh')
-rwxr-xr-xgit-rebase--interactive.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 6b86abc..7b35f80 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -111,6 +111,7 @@ VERBOSE=
OK_TO_SKIP_PRE_REBASE=
REBASE_ROOT=
AUTOSQUASH=
+test "$(git config --bool rebase.autosquash)" = "true" && AUTOSQUASH=t
NEVER_FF=
GIT_CHERRY_PICK_HELP=" After resolving the conflicts,
@@ -795,6 +796,9 @@ first and then run 'git rebase --continue' again."
--autosquash)
AUTOSQUASH=t
;;
+ --no-autosquash)
+ AUTOSQUASH=
+ ;;
--onto)
shift
ONTO=$(parse_onto "$1") ||