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

Re: rerere fails to record resolution if file doesn't exist in merge base

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Jul 9, 2007, 11:35 UTC
Message-ID
<20070709113543.GA12633@informatik.uni-freiburg.de>
In-Reply-To
<7vps32ugu2.fsf@assigned-by-dhcp.cox.net>
Hello Junio,
Junio C Hamano wrote:
Show 11 quoted lines
> Uwe Kleine-König  <ukleinek@informatik.uni-freiburg.de> writes:
> 
> > Anyhow, the failure still exists, even though the original report was
> > sent when rerere was still a perl script ...
> >
> > 	zeisberg@cassiopeia:/tmp/rerere$ git init
> > 	Initialized empty Git repository in .git/
> > 	zeisberg@cassiopeia:/tmp/rerere$ mkdir .git/rerere
> 
> This should be creating .git/rr-cache, but what you said in your
> message is correct regardless.
You're right.  copy-n-paste error.
 
Show 13 quoted lines
> > In my eyes the last command should have recorded the resolution for
> > lolo, shouldn't it?
> 
> I think two-file merge (ancestor did not have it, and you and he
> added the path differently) is rare enough that it was dropped
> outside of the radar.  A fix would probably be a trivial change
> to builtin-rerere.c::find_conflict(), I think.  While it would
> still be sane to insist that we do not do rerere for symlinks,
> and require to have stages #2 and #3, we should be able to drop
> the requirement to have stage #1.  rerere does not use
> information from there anyway.
> 
> Not even compile tested, but something like this should do.
It compiles, but seems not to work.  I will try to make up a test.

Best regards Uwe

-- 
Uwe Kleine-König

http://www.google.com/search?q=5+choose+3
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 6 in “rerere fails to record resolution if file doesn't exist in merge base”
  1. Uwe Kleine-KönigJul 9, 2007
  2. Junio C HamanoJul 9, 2007
  3. Uwe Kleine-KönigJul 9, 2007
  4. Johannes SchindelinJul 9, 2007
  5. rerere: record resolution even if file is not in merge baseJohannes Schindelin, Jul 9, 2007
  6. Uwe Kleine-KönigJul 9, 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.