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

Re: Small rerere in rebase regression

From
Junio C Hamano <gitster@pobox.com>
Date
May 23, 2016, 19:43 UTC
Message-ID
<xmqqy4708ss0.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<57434572.6030306@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
> I'm not sure whether the new behavior is a defect in rerere.c or a
> consequence of the extra rerere call in interactive rebase...

Interesting. When running an unnecessary "git rerere" (because it already was run and recorded the preimage), we used to be silent. With the updated code, we say something.

At least it seems that we do not record the same preimage as a different variant, so the regression is hopefully merely cosmetic.

I do not think it is a crime to say "git rerere" repeatedly without changing anything, so I do not think "rebase -i"'s call to rerere in die_with_patch is wrong, even though some calls to it seem to be made after seeing a "git merge" fail (which means we know 'rerere' has been run already).

I think all plumbing that can turn an index into unmerged state has a call to git_rerere() at the end (the only obvious exception being "update-index" that lets you stuff higher stage entries to the index), so as long as "rebase -i" uses them correctly, I suspect that die_with_patch shouldn't have to have a call to "git rerere".

Previous: Johannes SixtNext: Johannes Sixt
Message 2 of 11 in “Small rerere in rebase regression”
  1. Johannes SixtMay 23, 2016
  2. Junio C HamanoMay 23, 2016
  3. Johannes SixtMay 23, 2016
  4. Junio C HamanoMay 23, 2016
  5. Johannes SchindelinMay 24, 2016
  6. Johannes SixtMay 24, 2016
  7. Johannes SchindelinMay 25, 2016
  8. Johannes SchindelinMay 25, 2016
  9. Johannes SixtMay 27, 2016
  10. Johannes SchindelinMay 28, 2016
  11. Johannes SixtMay 24, 2016

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.