From: Phillip Wood <phillip.wood123@gmail.com>
To: erik88 <erik88@gmail.com>, phillip.wood@dunelm.org.uk
Cc: Erik Cervin-Edin <erik@cervined.in>,
git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH v4 0/3] commit: allow -m/-F/-c/-C for all --fixup variants
Date: Thu, 26 Nov 2026 15:07:30 +0000 [thread overview]
Message-ID: <6a4e6ee3-cdeb-4766-ae3d-088a322ab015@gmail.com> (raw)
In-Reply-To: <awfzGjPqQaaCSRd8@vader>
Hi Erik
On 26/11/2026 09:17, erik88 wrote:
> On 25/11/26 14:37, Phillip Wood wrote:
>>
>> I'm happy with everything apart from
>>
>> Plain --fixup never opens an editor, so -c there behaves like -C.
>>
>> in patch 3. It would be much nicer if we didn't change the meaning of "-c"
>> when it is combined with "--fixup". Users who do not want to edit the
>> message can use "-C". I've not looked at how easy it would be to fix that.
>> If it turns out to be tricky then I'm happy to merge this as is and leave it
>> as #leftoverbits.
>
> That's fair. I suspect nobody will use plain --fixup with -c but it's
> inconsistent if all of a sudden it means -C just because the --fixup is
> plain. What should work under v4s patch 3 is --fixup -c --edit, but
> forcing that is a bit weird.
>
>> I've not looked at how easy it would be to fix that.
>
> Looks easy enough, -c sets edit_message in cmd_commit()
>
> OPT_STRING('c', "reedit-message", &edit_message, N_("commit"),
> N_("reuse and edit message from specified commit")),
>
> so it's already set when we reach
>
> if (fixup_message) {
>
> in parse_and_validate_options(), and we could probably change
>
> } else {
> fixup_commit = fixup_message;
> fixup_prefix = "fixup";
> use_editor = 0;
> }
>
> to
>
> } else {
> fixup_commit = fixup_message;
> fixup_prefix = "fixup";
> if (!edit_message)
> use_editor = 0;
> }
Oh, that's easier than I feared it might be
> I can reroll with something like that if that seems better.
>
> Given that the rest of the series tries to get rid of some of the
> somewhat arbitrary restrictions on which options can be interchanged with
> the other ones, it doesn't make much sense to me to introduce a new
> "by the way, if you use -c with --fixup we'll assume you meant -C"
> caveat.
>
> To me it makes sense to keep the meaning of -c consistent.
I agree that keeping the meaning of -c consistent would be preferable if
you're happy to re-roll
Thanks
Phillip
next prev parent reply other threads:[~2026-11-26 15:07 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-18 11:22 [PATCH 0/1] commit: allow -m/-F with --fixup=amend: or reword: erik
2026-05-18 11:22 ` [PATCH 1/1] " erik
2026-05-18 12:39 ` Junio C Hamano
2026-05-18 15:27 ` Phillip Wood
2026-05-24 15:00 ` Erik Cervin Edin
2026-05-26 10:47 ` [PATCH v2 0/2] commit: allow -m/-F/-c/-C for all --fixup variations erik
2026-05-26 10:47 ` [PATCH v2 1/2] commit: allow -m/-F for all kinds of --fixup erik
2026-05-26 10:47 ` [PATCH v2 2/2] commit: allow -c/-C " erik
2026-08-26 21:31 ` Junio C Hamano
2026-09-04 18:47 ` Erik Cervin Edin
2026-09-22 13:04 ` [PATCH v3 0/2] commit: allow -m/-F/-c/-C for all --fixup variations erik
2026-09-22 13:04 ` [PATCH v3 1/2] commit: allow -m/-F for all kinds of --fixup erik
2026-10-21 15:11 ` Phillip Wood
2026-09-22 13:04 ` [PATCH v3 2/2] commit: allow -c/-C " erik
2026-10-21 15:10 ` Phillip Wood
2026-10-21 15:13 ` [PATCH v3 0/2] commit: allow -m/-F/-c/-C for all --fixup variations Phillip Wood
2026-11-05 14:51 ` Erik Cervin-Edin
2026-11-09 10:54 ` Phillip Wood
2026-11-24 23:32 ` [PATCH v4 0/3] commit: allow -m/-F/-c/-C for all --fixup variants Erik Cervin-Edin
2026-11-24 23:32 ` [PATCH v4 1/3] commit: write the --fixup subject the way --squash does Erik Cervin-Edin
2026-11-24 23:32 ` [PATCH v4 2/3] commit: allow -m/-F for all --fixup variants Erik Cervin-Edin
2026-11-24 23:32 ` [PATCH v4 3/3] commit: allow -c/-C " Erik Cervin-Edin
2026-11-25 14:37 ` [PATCH v4 0/3] commit: allow -m/-F/-c/-C " Phillip Wood
2026-11-26 9:17 ` erik88
2026-11-26 15:07 ` Phillip Wood [this message]
2026-11-28 12:13 ` [PATCH v5 " Erik Cervin-Edin
2026-11-28 12:13 ` [PATCH v5 1/3] commit: write the --fixup subject the way --squash does Erik Cervin-Edin
2026-11-29 1:31 ` Junio C Hamano
2026-11-28 12:14 ` [PATCH v5 2/3] commit: allow -m/-F for all --fixup variants Erik Cervin-Edin
2026-11-29 1:51 ` Junio C Hamano
2026-11-28 12:14 ` [PATCH v5 3/3] commit: allow -c/-C " Erik Cervin-Edin
2026-11-29 18:34 ` Junio C Hamano
2026-11-30 14:28 ` Phillip Wood
2026-11-30 14:29 ` [PATCH v5 0/3] commit: allow -m/-F/-c/-C " Phillip Wood
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=6a4e6ee3-cdeb-4766-ae3d-088a322ab015@gmail.com \
--to=phillip.wood123@gmail.com \
--cc=erik88@gmail.com \
--cc=erik@cervined.in \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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.