From: Junio C Hamano <gitster@pobox.com>
To: Phillip Wood <phillip.wood123@gmail.com>
Cc: Matt Hunter <m@lfurio.us>,
Harald Nordgren <haraldnordgren@gmail.com>,
phillip.wood@dunelm.org.uk, git@vger.kernel.org
Subject: Re: What's cooking in git.git (Jul 2026, #12)
Date: Mon, 03 Aug 2026 09:02:45 -0700 [thread overview]
Message-ID: <xmqqfr0vyyxm.fsf@gitster.g> (raw)
In-Reply-To: <f00673cc-afc8-4a4f-a668-e22c53b46181@gmail.com> (Phillip Wood's message of "Mon, 3 Aug 2026 10:05:15 +0100")
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.
> 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 ;-).
> 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.
next prev parent reply other threads:[~2026-08-03 16:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 3:09 What's cooking in git.git (Jul 2026, #12) Junio C Hamano
2026-07-29 13:24 ` Phillip Wood
2026-07-29 14:18 ` Junio C Hamano
2026-07-29 15:20 ` Phillip Wood
2026-07-29 17:48 ` Junio C Hamano
2026-07-31 6:20 ` Matt Hunter
2026-07-31 15:36 ` Junio C Hamano
2026-07-30 6:11 ` Harald Nordgren
2026-07-31 7:02 ` Matt Hunter
2026-08-03 9:05 ` Phillip Wood
2026-08-03 16:02 ` Junio C Hamano [this message]
2026-08-03 9:11 ` Phillip Wood
2026-07-29 15:14 ` Phillip Wood
2026-07-29 15:52 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqfr0vyyxm.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=haraldnordgren@gmail.com \
--cc=m@lfurio.us \
--cc=phillip.wood123@gmail.com \
--cc=phillip.wood@dunelm.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.