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

Re: What's cooking in git.git (Oct 2023, #01; Mon, 2)

From
Sergey Organov <sorganov@gmail.com>
Date
Oct 3, 2023, 07:01 UTC
Message-ID
<871qecgpg1.fsf@osv.gnss.ru>
In-Reply-To
<xmqqedic35u4.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
[...]
Show 6 quoted lines
> * so/diff-merges-d (2023-09-11) 2 commits
>  - diff-merges: introduce '-d' option
>  - diff-merges: improve --diff-merges documentation
>
>  Teach a new "-d" option that shows the patch against the first
>  parent for merge commits (which is "--diff-merges=first-parent -p").

Which happens to naturally mean "show diff for all commits" for the user.

>
>  Letting a less useful combination of options squat on short-and-sweet
>  "-d" feels dubious. source:
>  <20230909125446.142715-1-sorganov@gmail.com>

I believe I've addressed this in details in my reply here: <87o7hok8dx.fsf@osv.gnss.ru>, and got no further objections from you since then, so I figure I'd ask to finally let the patch in.

To summarize my position here, "-d" meaning "show me *d*iff for all commits", as implemented in the patch, is very mnemonic, has natural semantics for "-d" in the context of "git log", and is straight to the point. Therefore it is indeed short-and-sweet compared to the only alternative proposed: "follow first parent only while traversing history and show me diffs for all commits", that would indeed need a different short-cut, if any.

Thanks, -- Sergey Organov

Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 12 in “What's cooking in git.git (Oct 2023, #01; Mon, 2)”
  1. Junio C HamanoOct 3, 2023
  2. Sergey OrganovOct 3, 2023
  3. Junio C HamanoOct 3, 2023
  4. Sergey OrganovOct 3, 2023
  5. Junio C HamanoOct 4, 2023
  6. Sergey OrganovOct 4, 2023
  7. Junio C HamanoOct 5, 2023
  8. Sergey OrganovOct 5, 2023
  9. Junio C HamanoOct 5, 2023
  10. Sergey OrganovOct 6, 2023
  11. Eric W. BiedermanOct 4, 2023
  12. Junio C HamanoOct 4, 2023

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.