git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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-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
Next: Junio C Hamano
Message 1 of 7 in “git pull/merge --compact-summary”
  1. 0/2 git pull/merge --compact-summaryJunio C Hamano, Jun 12, 2025
  2. 1/2 merge/pull: --compact-summaryJunio C Hamano, Jun 12, 2025
  3. Kristoffer HaugsbakkJun 13, 2025
  4. Junio C HamanoJun 13, 2025
  5. 2/2 merge/pull: extend merge.stat configuration variable to cover --compact-summaryJunio C Hamano, Jun 12, 2025
  6. Kristoffer HaugsbakkJun 13, 2025
  7. Junio C HamanoJun 13, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.