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

Re: [PATCH] config: correct log.showRoot description

From
Taylor Blau <me@ttaylorr.com>
Date
Jun 15, 2022, 01:50 UTC
Message-ID
<Yqk66CTVbX22Xi+e@nand.local>
In-Reply-To
<b7aa801c3995fffdce37d90adba9253485b616e3.1655223201.git.git@grubix.eu>
On Tue, Jun 14, 2022 at 06:14:22PM +0200, Michael J Gruber wrote:
Show 16 quoted lines
> diff --git a/Documentation/config/log.txt b/Documentation/config/log.txt
> index 456eb07800..b210f24cca 100644
> --- a/Documentation/config/log.txt
> +++ b/Documentation/config/log.txt
> @@ -40,10 +40,10 @@ log.graphColors::
>  	history lines in `git log --graph`.
>
>  log.showRoot::
> -	If true, the initial commit will be shown as a big creation event.
> -	This is equivalent to a diff against an empty tree.
> -	Tools like linkgit:git-log[1] or linkgit:git-whatchanged[1], which
> -	normally hide the root commit will now show it. True by default.
> +	If `false`, tools like linkgit:git-log[1] or linkgit:git-whatchanged[1]
> +	will not treat the initial commit as a big creation event.  Any root
> +	commits in `git log -p` output would be shown without a diff attached.
> +	The default is `true`.

This looks good to me. An alternative approach which would work to would be to replace "If `true`" with "When `true`". I have a vague preference towards the latter, since it explains what log.showRoot does, rather than what it does not do.

But this works just as well, and I think that I'm splitting hairs anyways ;).

Thanks, Taylor

Previous: Michael J Gruber
Message 2 of 2 in “config: correct log.showRoot description”
  1. config: correct log.showRoot descriptionMichael J Gruber, Jun 14, 2022
  2. Taylor BlauJun 15, 2022

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.