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

Re: [PATCH v2 2/2] commit: allow -c/-C for all kinds of --fixup

From
EEErik Cervin Edin <erik@cervined.in>
Date
Sep 4, 2026, 18:47 UTC
Message-ID
<CA+JQ7M__GOnM9LHt0txry-G2z2CKhdZr0b-rU=Yd_A0gCEwmaQ@mail.gmail.com>
In-Reply-To
<xmqq1pbkefh0.fsf@gitster.g>
On Wed, 26 Aug 2026 at 23:31, Junio C Hamano <gitster@pobox.com> wrote:
> Sorry, but this topic has been hanging without getting any reviews
> on the list for quite a while.
>
> Any takers?

I'm a little unfamiliar with this part of the mailing list, but yes, it's been a while. I've been assuming people are busy with other things, which is ofc okay. If there's anything I can do on my side to help make this easier I'm happy to. I may be slow to respond since I check this thread less frequently these days.

FWIW I've been dogfooding these options to reword commit messages the last few months and found it pretty useful so far.

Show 19 quoted lines
> One small thing I noticed appears here:
>
> > @@ -1341,7 +1346,7 @@ static int parse_and_validate_options(int argc, const char *argv[],
> >               die(_("options '%s' and '%s' cannot be used together"), "--squash", "--fixup");
> >       die_for_incompatible_opt3(!!use_message, "-C",
> >                                 !!edit_message, "-c",
> > -                               !!fixup_message, "--fixup");
> > +                               !!logfile, "-F");
> >       die_for_incompatible_opt4(have_option_m, "-m",
> >                                 !!edit_message, "-c",
> >                                 !!use_message, "-C",
>
> This blocks -C, -c, -F from being used together.  But the next
> opt4() covers these combinations already:
>
>         die_for_incompatible_opt4(have_option_m, "-m",
>                                   !!edit_message, "-c",
>                                   !!use_message, "-C",
>                                   !!logfile, "-F")

That looks like it's worth a second look. I'll be away for a few weeks but I'll take a look at that when I get back.

Previous: Junio C HamanoNext: erik@cervined.in
Message 10 of 13 in “commit: allow -m/-F with --fixup=amend: or reword:”
  1. 0/1 commit: allow -m/-F with --fixup=amend: or reword:erik@cervined.in, May 18, 2026
  2. 1/1 commit: allow -m/-F with --fixup=amend: or reword:erik@cervined.in, May 18, 2026
  3. Junio C HamanoMay 18, 2026
  4. Phillip WoodMay 18, 2026
  5. Erik Cervin EdinMay 24, 2026
  6. 0/2 commit: allow -m/-F/-c/-C for all --fixup variationserik@cervined.in, May 26, 2026
  7. 1/2 commit: allow -m/-F for all kinds of --fixuperik@cervined.in, May 26, 2026
  8. 2/2 commit: allow -c/-C for all kinds of --fixuperik@cervined.in, May 26, 2026
  9. Junio C HamanoAug 26, 2026
  10. Erik Cervin EdinSep 4, 2026
  11. 0/2 commit: allow -m/-F/-c/-C for all --fixup variationserik@cervined.in, Sep 22, 2026
  12. 1/2 commit: allow -m/-F for all kinds of --fixuperik@cervined.in, Sep 22, 2026
  13. 2/2 commit: allow -c/-C for all kinds of --fixuperik@cervined.in, Sep 22, 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.