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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2025, 16:38 UTC
Message-ID
<xmqqv7oz8um1.fsf@gitster.g>
In-Reply-To
<deb4951a-5d1b-416d-bcad-5d675d8155cc@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 8 quoted lines
> On Fri, Jun 13, 2025, at 00:25, Junio C Hamano wrote:
>> Extend it to be "Boolean or text", that takes false, true, or
>> "compact", with the last one triggering the --compact-summary
>> option introduced earlier.
>
> Would it make sense to make `diffstat` an alias for `true`?  I’m not
> sure since you need to keep `true` anyway so you still have that
> historical artifact (?)[1] of `true` meaning `diffstat`.

Correct. But people can bikeshed about adding such synonyms later without breaking existing users, so I would not consider such a tweak for the initial version.

Show 5 quoted lines
> There’s also several places in this doc which uses something similar
> judging by a search for “defaults to”.  Only exception is
> `merge.renameLimit`:
>
>     If not specified, defaults to

Having something before "Defaults to X" (like "if left unspecified" etc.) may not be logically and technically needed, as that is the definion of what the "default" is.

Having said that, I somehow find the resulting sentence easier to read with such an introducer, but perhaps it is just me.

Among the output of
    $ git grep -E -i ', default' Documentation/
we already have quite a few of them.
Thanks.

Documentation/config/commitgraph.adoc:repository, defaulting to 1 if there are none. Documentation/config/merge.adoc: rename detection during a merge. If not specified, defaults Documentation/fetch-options.adoc:is set (see linkgit:git-config[1]), defaulting to 'on-demand' if unset. Documentation/git-init.adoc:The option can have the following values, defaulting to `group` if no value Documentation/git-send-email.adoc:value; if that is unspecified, default to `auto`. Documentation/git-send-email.adoc: value; if that is unspecified, default to --signed-off-by-cc. Documentation/git-send-email.adoc: configuration value; if that is unspecified, default to --no-cc-cover. Documentation/git-send-email.adoc: configuration value; if that is unspecified, default to --no-to-cover. Documentation/git-send-email.adoc:that is unspecified, default to 'self' if --suppress-from is Documentation/git-send-email.adoc: value; if that is unspecified, default to --no-suppress-from. Documentation/git-send-email.adoc:is unspecified, default to 'auto' unless any of the suppress options

Previous: Kristoffer Haugsbakk
Message 7 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.