merge: add --quit
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 18 May 2019 11:30:43 +0000 (18:30 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 19 May 2019 01:47:40 +0000 (10:47 +0900)
commitf3f8311ec76f9bcdc7e26a125e585eb4e473a8d2
treecaa84e1112e300a06e7361ed03624e3c8a0f804f
parentb64335554a3691cbc134fb73a598dfd593f44b4e
merge: add --quit

This allows to cancel the current merge without resetting worktree/index,
which is what --abort is for. Like other --quit(s), this is often used
when you forgot that you're in the middle of a merge and already
switched away, doing different things. By the time you've realized, you
can't even continue the merge anymore.

This also makes all in-progress commands, am, merge, rebase, revert and
cherry-pick, take all three --abort, --continue and --quit (bisect has a
different UI).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-merge.txt
builtin/merge.c
t/t7600-merge.sh