]> git.ipfire.org Git - thirdparty/git.git/commit - diff-merges.c
diff-merges: make -m/-c/--cc explicitly mutually exclusive
authorSergey Organov <sorganov@gmail.com>
Mon, 21 Dec 2020 15:19:50 +0000 (18:19 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Dec 2020 21:47:31 +0000 (13:47 -0800)
commit255a4dacc59f4f4f62cc61743f40a078b4b38647
tree5326feccb7bec4478378d977282a8774efad380f
parent3d2b5f2f496b9868f982b614f9c2232efa7505df
diff-merges: make -m/-c/--cc explicitly mutually exclusive

-c/--cc got precedence over -m only because of external logic where
corresponding flags are checked before that for -m. This is too
error-prone, so add code that explicitly makes these 3 options
mutually exclusive, so that the last option specified on the
command-line gets precedence.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-merges.c