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

Re: [PATCH 2/2] Catch and handle git-commit failures in git-rebase --interactive

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 19, 2007, 07:03 UTC
Message-ID
<7vr6hjw4gw.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071219064500.GB8915@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 8 quoted lines
>  Comments welcome.  This is on top of my 1/2 patch but we could
>  drop my 1/2 and rewrite this to not use --no-verify, but handle
>  the git-commit error correctly.
>
>  However that would force users to fix whitespace errors in later
>  patches in a series if they use -i, even though non-i wouldn't
>  require that sort of fix-up.  So I think we should do both patches
>  in the series.
I agree with both patches.

When one wants to use rebase to fix-up whitespace breakage in patches in bulk, you can set apply.whitespace to "fix". One bad side effect of this is that if you usually have apply.whitespace set to "fix" (because you need to accept a lot of patches but your contributers tend to give crappy patches), you need to temporarily change the configuration while rebasing if you do not want to preserve intentional whitespace breakages (e.g. ones in test scripts). This can be argued either a feature or a misfeature.

But rebase -i breaking and squashing upon commit failure (including pre-commit safety) cannot be called either feature nor misfeature --- it is an outright bug.

Previous: Shawn O. PearceNext: Johannes Schindelin
Message 2 of 3 in “Catch and handle git-commit failures in git-rebase --interactive”
  1. 2/2 Catch and handle git-commit failures in git-rebase --interactiveShawn O. Pearce, Dec 19, 2007
  2. Junio C HamanoDec 19, 2007
  3. Johannes SchindelinDec 19, 2007

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.