[PATCH v2 0/2] git pull/merge --compact-summary
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 12, 2025, 22:25 UTC
- Message-ID
- <20250612222537.2426059-1-gitster@pobox.com>
By default, "git merge" and "git pull" shows "git diff --stat @{1}" to show the extent of the changes. While it gives a good overview, one thing that is missing in this output is which paths are created and/or deleted.
With these two patches, these commands learn "--compact-summary" command line option and a new value "compact" for the existing merge.stat configuration variable, to change that final output to use "git diff --compact-summary @{1}" instead.
I sent this out with random fix-ups in separate threads but never made a formal patch series. Here are the earlier messages:
https://lore.kernel.org/git/xmqq5xh6xlpm.fsf@gitster.g/ https://lore.kernel.org/git/xmqqfrg6i57t.fsf@gitster.g/
Junio C Hamano (2):
merge/pull: --compact-summary
merge/pull: extend merge.stat configuration variable to cover
--compact-summaryDocumentation/config/merge.adoc | 12 ++++++-- Documentation/git-merge.adoc | 2 +- Documentation/merge-options.adoc | 3 ++ builtin/merge.c | 53 +++++++++++++++++++++++++++++--- builtin/pull.c | 3 ++ t/t7600-merge.sh | 43 +++++++++++++++++++++++++- 6 files changed, 108 insertions(+), 8 deletions(-)
-- 2.50.0-rc2-255-gd84100c98d