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

Re: [PATCH 1/2] rebase -i: respect commit.cleanup when picking fixups

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 18, 2025, 15:29 UTC
Message-ID
<xmqqtt0z93ul.fsf@gitster.g>
In-Reply-To
<8fb1b4b4a5f4857a3d7d98d029b22904751ec144.1758186038.git.phillip.wood@dunelm.org.uk>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 7 quoted lines
> ... The cause of that
> bug was that before f7d42ceec52 the sequencer passed CLEANUP_MSG
> when committing the final fixup. That commit should have simply
> removed the CLEANUP_MSG flag, not changed it to VERBATIM_MSG. Using
> VERBATIM_MSG ignores the user's commit.cleanup config when committing
> the final fixup which means it behaves differently to an ordinary
> "pick" command which respects commit.cleanup.
So cleanly analysed and clearly described. 
Show 12 quoted lines
> diff --git a/sequencer.c b/sequencer.c
> index 9ae40a91b24..47c57c2ea3c 100644
> --- a/sequencer.c
> +++ b/sequencer.c
> @@ -2436,7 +2436,6 @@ static int do_pick_commit(struct repository *r,
>  		if (!final_fixup)
>  			msg_file = rebase_path_squash_msg();
>  		else if (file_exists(rebase_path_fixup_msg())) {
> -			flags |= VERBATIM_MSG;
>  			msg_file = rebase_path_fixup_msg();
>  		} else {
>  			const char *dest = git_path_squash_msg(r);

And this is the location the earlier commit replaced the code that sets CLEANUP_MSG, which matches the fix described in the proposed log message. Makes sense.

The commit at the source of the bug is what introduced VERBATIM_MSG, and I think it can be removed (this was the only place it was set).

And you removed it in a separate step ;-).  Well done.
Thanks.
Previous: Phillip WoodNext: Phillip Wood
Message 3 of 4 in “rebase -i: respect commit.cleanup when picking fixups”
  1. 0/2 rebase -i: respect commit.cleanup when picking fixupsPhillip Wood, Sep 18, 2025
  2. 1/2 rebase -i: respect commit.cleanup when picking fixupsPhillip Wood, Sep 18, 2025
  3. Junio C HamanoSep 18, 2025
  4. 2/2 sequencer: remove VERBATIM_MSG flagPhillip Wood, Sep 18, 2025

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.