]> git.ipfire.org Git - thirdparty/git.git/commit
merge/pull: extend merge.stat configuration variable to cover --compact-summary
authorJunio C Hamano <gitster@pobox.com>
Thu, 12 Jun 2025 22:25:37 +0000 (15:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2025 18:54:14 +0000 (11:54 -0700)
commitc8b4805897aa12305389c76480e1d59c4696f2ac
treeab9fcd94043463abc24164dba7954c86f4793868
parent3a54f5bd5db0478c39a52b4da149e3c2413f46eb
merge/pull: extend merge.stat configuration variable to cover --compact-summary

Existing `merge.stat` configuration variable is a Boolean that
defaults to `true` to control `git merge --[no-]stat` behaviour.

Extend it to be "Boolean or text", that takes false, true, or
"compact", with the last one triggering the --compact-summary option
introduced earlier.  Any other values are taken as the same as true,
instead of signaling an error---it is not a grave enough offence to
stop their merge.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/merge.adoc
builtin/merge.c
t/t7600-merge.sh