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

Re: Two bugs with renaming

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Mar 20, 2008, 01:24 UTC
Message-ID
<20080320012454.GA16843@atjola.homenet>
In-Reply-To
<slrnfu37vn.d2i.jgoerzen@katherina.lan.complete.org>
On 2008.03.19 18:21:27 -0500, John Goerzen wrote:
Show 5 quoted lines
> Hi folks,
> 
> I have a transcript of a Git session that illustrates two odd bugs
> with Git renaming.  Command output is truncated except where
> interesting.

I have another one. Well, not necessarily a bug, but at least something that looks like it could be improved. I found that while trying to reproduce bug #1 (which doesn't show up here, as I'm using 1.5.5-something).

It seems to boil down to the fact that even when git detected a rename during a merge, it still uses the original file name to check for conflicts, causing somewhat bogus conflicts.

Test script is attached, when I run that, git correctly applies the changes from foo/file in master to foo2/file in "other", but nevertheless it complains that "foo" conflicts, although the directory is effectively empty and should therefore not be of any interest to git.

Björn
Previous: Jeff KingNext: Linus Torvalds
Message 6 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.