diff-merges: new function diff_merges_suppress()
authorSergey Organov <sorganov@gmail.com>
Mon, 21 Dec 2020 15:19:38 +0000 (18:19 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Dec 2020 21:47:31 +0000 (13:47 -0800)
commit09322b1da92fd32204c8b4b07cf12decccfe47f3
tree74698f04a0722bf2ab75f8af317b9225ba414860
parent564a4fc8471b41fc05bda16e4bbb02a99b515cbf
diff-merges: new function diff_merges_suppress()

This function sets all the relevant flags to disabled state, so that
no code that checks only one of them get it wrong.

Then we call this new function everywhere where diff merges output
suppression is needed.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge.c
diff-merges.c
diff-merges.h
fmt-merge-msg.c