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

Re: What's cooking in git.git (Jul 2026, #12)

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 3, 2026, 16:02 UTC
Message-ID
<xmqqfr0vyyxm.fsf@gitster.g>
In-Reply-To
<f00673cc-afc8-4a4f-a668-e22c53b46181@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
> If you raise a point and it is dismissed without a convincing 
> explanation then its fine to raise it again asking for more details so 
> that you can understand the reason behind the decision. That often leads 
> to a productive discussion and an improved design.

True. But because "convincing" is not black and white, we need to be careful a bit.

Show 6 quoted lines
> That precedent is unfortunate, "--reedit-message" makes sense for the 
> "fixup" subcommand because we are reediting an existing message but 
> that's not the case with the "squash" subcommand where we're 
> constructing a new message from several commits. Given how new the 
> "fixup" subcommand is I'm tempted to add an "--edit" option and 
> deprecate "--reedit-message".

As "git history" is marked experimental, we can afford to tweak the UI for the better ;-).

Show 6 quoted lines
> Having thought about it a bit over the weekend I wonder if the best 
> solution when squashing is to default to looking at the commits being 
> squashed before deciding whether to open the editor or not and allow the 
> user to override that on the commandline like "git commit". If we're 
> squashing a bunch of "fixup!" and/or "amend!" commits into a single 
> target then I'm not sure its worth opening the editor...

Hmph, a base commit with an "amend!" (tells the machinery to use the message from the "amend!" commit only, discarding the existing one) is clear to me that there is no need for further editing, but if there is any "fixup!" (code change, for which need for associating log message change is unknown) or if there are multiple "amend!", I am not so sure. It does make it confusing, I suspect.

Previous: Phillip WoodNext: Phillip Wood
Message 13 of 17 in “What's cooking in git.git (Jul 2026, #12)”
  1. Junio C HamanoJul 27, 2026
  2. Phillip WoodJul 29, 2026
  3. Junio C HamanoJul 29, 2026
  4. Phillip WoodJul 29, 2026
  5. Junio C HamanoJul 29, 2026
  6. Phillip WoodAug 5, 2026
  7. Junio C HamanoAug 5, 2026
  8. Matt HunterJul 31, 2026
  9. Junio C HamanoJul 31, 2026
  10. Harald NordgrenJul 30, 2026
  11. Matt HunterJul 31, 2026
  12. Phillip WoodAug 3, 2026
  13. Junio C HamanoAug 3, 2026
  14. Phillip WoodAug 4, 2026
  15. Phillip WoodAug 3, 2026
  16. Phillip WoodJul 29, 2026
  17. Junio C HamanoJul 29, 2026

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.