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

fixup! bug, was Re: [ANNOUNCE] Git for Windows 2.37.2

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 15, 2022, 11:30 UTC
Message-ID
<16r2s842-1r7r-p05n-82o5-q01921r35oqr@tzk.qr>
In-Reply-To
<xmqqwnbdct1m.fsf@gitster.g>
Hi Junio,
On Fri, 12 Aug 2022, Junio C Hamano wrote:
Show 10 quoted lines
> Victoria Dye <vdye@github.com> writes:
>
> > Johannes Schindelin wrote:
> > Just a heads-up: there was an issue with the process used to generate this
> > version. ...
>
> Sorry to see that it caused two cycles of release process.  Would it
> have helped you if I had done things differently (other than "not
> issuing maintenance releases that are not security relevant"), perhaps
> giving a notice in advance by say a few days?
Thank you for offering to accommodate Git for Windows' needs.

In this instance, we tracked the problem down to https://github.com/gitgitgadget/git/issues/1321: When a rebase has a `pick` & `fixup` sequence and the `pick` failed and was skipped, then the `fixup` is still trying to amend `HEAD`, which is incorrect.

In this instance, that wreaked quite the havoc, dropping most of the Windows-specific changes due to mistaking the initial fake merge [*1*] for a real merge.

I offer a more verbose version of this analysis in https://github.com/git-for-windows/git/pull/3981#issuecomment-1212856115

Ciao, Dscho

Footnote *1*: In Git for Windows, we use the "merging-rebase" strategy where each rebase starts with a fake merge of the previous commit history ("fake" because it uses `-s ours` to avoid taking any actual content changes). The idea is that the patches will be as clean and ready to submit to upstream as possible by rebasing them, yet still be able to fast-forward. For more details, see https://github.com/git-for-windows/build-extra/blob/ab941145aeef/shears.sh#L12-L18

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “[ANNOUNCE] Git for Windows 2.37.2”
  1. Johannes SchindelinAug 11, 2022
  2. Junio C HamanoAug 11, 2022
  3. Victoria DyeAug 11, 2022
  4. Junio C HamanoAug 12, 2022
  5. fixup! bug, was Re: [ANNOUNCE] Git for Windows 2.37.2Johannes Schindelin, Aug 15, 2022
  6. Junio C HamanoAug 15, 2022

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.