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

Re: Two bugs with renaming

From
Jeff King <peff@peff.net>
Date
Mar 20, 2008, 02:06 UTC
Message-ID
<20080320020621.GA24678@coredump.intra.peff.net>
In-Reply-To
<7vwsnyz07y.fsf@gitster.siamese.dyndns.org>
On Wed, Mar 19, 2008 at 05:51:45PM -0700, Junio C Hamano wrote:
> > # Set up bug #2
> 
> This hasn't been addressed, I think.

Hmm. It looks like threeway_merge is getting bogus input. In a regular merge (e.g., branch changes file "file", master adds new file "other", branch merges master), threeway merge sees:

  - call 1: index=file, head=file, remote=file
  - call 2: index=NULL, head=NULL, remote=other

But if the change to file is a D/F conflict (as in the scenario John described), we get:

  - call 1: index=files, head=files, remote=""
  - call 2: index=files.upstream/delete.me, head=NULL, remote=NULL

and it barfs because index != head in the second call. But the "" entry in the first call makes me wonder if this is the same "lists getting out of sync" problem as before.

This is as far as I got. I don't have any more time to look at it tonight, unfortunately.

-Peff
Previous: Junio C HamanoNext: John Goerzen
Message 3 of 9 in “Two bugs with renaming”
  1. John GoerzenMar 19, 2008
  2. Junio C HamanoMar 20, 2008
  3. Jeff KingMar 20, 2008
  4. John GoerzenMar 20, 2008
  5. Jeff KingMar 20, 2008
  6. Björn SteinbrinkMar 20, 2008
  7. Linus TorvaldsMar 20, 2008
  8. Linus TorvaldsMar 20, 2008
  9. Junio C HamanoMar 20, 2008

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.