]> git.ipfire.org Git - thirdparty/git.git/commit
merge/pull: add the "--compact-summary" option
authorJunio C Hamano <gitster@pobox.com>
Thu, 12 Jun 2025 22:25:36 +0000 (15:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2025 18:50:37 +0000 (11:50 -0700)
commit3a54f5bd5db0478c39a52b4da149e3c2413f46eb
tree09e0f31394a5c17310bc6702b5499c292410aba8
parent83cb7ae638f7eb108d107b0430a01648fb861e2c
merge/pull: add the "--compact-summary" option

"git merge" and "git pull" shows "git diff --stat --summary @{1}"
when they finish to indicate the extent of the changes brought into
the history by default.  While it gives a good overview, it becomes
annoying when there are very many created or deleted paths.

Introduce "--compact-summary" option to these two commands that
tells it to instead show "git diff --compact-summary @{1}", which
gives the same information in a lot more compact form in such a
situation.

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