summaryrefslogtreecommitdiff
path: root/gitk-git
diff options
context:
space:
mode:
authorLibravatar Alban Gruin <alban.gruin@gmail.com>2018-05-28 14:34:21 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-01 09:34:48 +0900
commit6d98d0c018cc8008af386f19a43a8b823a5a08d8 (patch)
tree585532062b4a743babe1ead147221653af6c347c /gitk-git
parentrebase: strip unused code in git-rebase--preserve-merges.sh (diff)
downloadtgif-6d98d0c018cc8008af386f19a43a8b823a5a08d8.tar.xz
rebase: use the new git-rebase--preserve-merges.sh
Create a new type of rebase, "preserve-merges", used when rebase is called with -p. Before that, the type for preserve-merges was "interactive", and some places of this script compared $type to "interactive". Instead, the code now checks if $interactive_rebase is empty or not, as it is set to "explicit" when calling an interactive rebase (and, possibly, one of its submodes), and "implied" when calling one of its submodes (eg. preserve-merges) *without* interactive rebase. It also detects the presence of the directory "$merge_dir"/rewritten left by the preserve-merges script when calling rebase --continue, --skip, etc., and, if it exists, sets the rebase mode to preserve-merges. In this case, interactive_rebase is set to "explicit", as "implied" would break some tests. Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Diffstat (limited to 'gitk-git')
0 files changed, 0 insertions, 0 deletions