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

Re: [PATCH 2/1] merge/pull: extend merge.stat configuration variable to cover --compact-summary

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 11, 2025, 17:12 UTC
Message-ID
<CAPig+cRgUWYGPb7o_9UgeQAuE5WN1mtC=bsOP=62rXOzjXJ5Eg@mail.gmail.com>
In-Reply-To
<xmqqfrg6i57t.fsf@gitster.g>
On Wed, Jun 11, 2025 at 1:00 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
> 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.
>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> ---
> diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh
> @@ -231,6 +231,21 @@ test_expect_success 'the same merge with compact summary' '
> +test_expect_success 'the same merge with merge.stat=compact' '
> +       cat >expect <<-EOF &&
Do we want \EOF (with backslash)?
Show 12 quoted lines
> +       Updating FROM..TO
> +       Fast-forward
> +        file        | 2 +-
> +        other (new) | 9 +++++++++
> +        2 files changed, 10 insertions(+), 1 deletion(-)
> +       EOF
> +
> +       git reset --hard c0 &&
> +       git -c merge.stat=compact merge c1 >out &&
> +       sed -e "1s/^Updating [0-9a-f.]*/Updating FROM..TO/" out >actual &&
> +       test_cmp expect actual
> +'
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 7 in “merge/pull: --compact-summary”
  1. merge/pull: --compact-summaryJunio C Hamano, Jun 8, 2025
  2. D. Ben KnobleJun 10, 2025
  3. Junio C HamanoJun 11, 2025
  4. D. Ben KnobleJun 11, 2025
  5. 2/1 merge/pull: extend merge.stat configuration variable to cover --compact-summaryJunio C Hamano, Jun 11, 2025
  6. Eric SunshineJun 11, 2025
  7. Junio C HamanoJun 11, 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.