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

Re: [PATCH 3/3] diff-merges: clarify log.diffMerges documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 15, 2022, 18:43 UTC
Message-ID
<xmqqr10cmqbk.fsf@gitster.g>
In-Reply-To
<20220914193102.5275-4-sorganov@gmail.com>
Sergey Organov <sorganov@gmail.com> writes:
Show 22 quoted lines
> Signed-off-by: Sergey Organov <sorganov@gmail.com>
> ---
>  Documentation/config/log.txt | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/config/log.txt b/Documentation/config/log.txt
> index 5250ba45fb4e..cbe34d759221 100644
> --- a/Documentation/config/log.txt
> +++ b/Documentation/config/log.txt
> @@ -30,9 +30,9 @@ log.excludeDecoration::
>  	option.
>  
>  log.diffMerges::
> -	Set default diff format to be used for merge commits. See
> -	`--diff-merges` in linkgit:git-log[1] for details.
> -	Defaults to `separate`.
> +	Set diff format to be used when `--diff-merges=on` is
> +	specified, see `--diff-merges` in linkgit:git-log[1] for
> +	details. Defaults to `separate`.
>  
>  log.follow::
>  	If `true`, `git log` will act as if the `--follow` option was used when

Is the reason why the patch drops "default" because the value given is used only when --diff-merges=on is given, and does not kick in when "--diff-merges=<format>" is explicitly given?

The rest of the change does make sense.
Previous: Sergey OrganovNext: Sergey Organov
Message 11 of 13 in “diff-merges: minor cleanups”
  1. 0/3 diff-merges: minor cleanupsSergey Organov, Sep 14, 2022
  2. 1/3 diff-merges: cleanup func_by_opt()Sergey Organov, Sep 14, 2022
  3. Junio C HamanoSep 15, 2022
  4. Sergey OrganovSep 16, 2022
  5. Junio C HamanoSep 16, 2022
  6. Sergey OrganovSep 16, 2022
  7. 2/3 diff-merges: cleanup set_diff_merges()Sergey Organov, Sep 14, 2022
  8. Junio C HamanoSep 15, 2022
  9. Sergey OrganovSep 16, 2022
  10. 3/3 diff-merges: clarify log.diffMerges documentationSergey Organov, Sep 14, 2022
  11. Junio C HamanoSep 15, 2022
  12. Sergey OrganovSep 16, 2022
  13. Junio C HamanoSep 16, 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.