public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] git pull/merge --compact-summary
@ 2025-06-12 22:25 Junio C Hamano
  2025-06-12 22:25 ` [PATCH v2 1/2] merge/pull: --compact-summary Junio C Hamano
  2025-06-12 22:25 ` [PATCH v2 2/2] merge/pull: extend merge.stat configuration variable to cover --compact-summary Junio C Hamano
  0 siblings, 2 replies; 7+ messages in thread
From: Junio C Hamano @ 2025-06-12 22:25 UTC (permalink / raw)
  To: git

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-summary

 Documentation/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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-13 16:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-12 22:25 [PATCH v2 0/2] git pull/merge --compact-summary Junio C Hamano
2025-06-12 22:25 ` [PATCH v2 1/2] merge/pull: --compact-summary Junio C Hamano
2025-06-13 12:07   ` Kristoffer Haugsbakk
2025-06-13 16:26     ` Junio C Hamano
2025-06-12 22:25 ` [PATCH v2 2/2] merge/pull: extend merge.stat configuration variable to cover --compact-summary Junio C Hamano
2025-06-13 12:09   ` Kristoffer Haugsbakk
2025-06-13 16:38     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox