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

BUG: git can't handle certain kinds of renames in merges

From
Caleb Cushing <xenoterracide@gmail.com>
Date
Mar 10, 2009, 14:45 UTC
Message-ID
<81bfc67a0903100745m3a425337h3f4f7cdbde6b5cfe@mail.gmail.com>

git actually sucks at some merges 101 :P. I'm going to have to play with my test repository further because eventually I should be able to get git-write-tree failures making any kind of 'merge' impossible.

git://github.com/xenoterracide/git-test-case.git
clone that. checkout branch 1. then git merge master to see my end failure.
steps to create

add a file in a branch with a line (or more). create a new branch based on this branch and check it out. in the new branch mv the file into a directory with the same name as the file was. add -u and add the file so git sees the rename. checkout the original branch add some lines. checkout the new branch merge. the merge will go fine. remove a line from the new branches file. checkout master. add another line to that file. checkout new branch and attempt to merge.

you should now see the point that may test case is at.
-- 
Caleb Cushing

http://xenoterracide.blogspot.com
Next: Pieter de Bie
Message 1 of 3 in “BUG: git can't handle certain kinds of renames in merges”
  1. Caleb CushingMar 10, 2009
  2. Pieter de BieMar 10, 2009
  3. Caleb CushingMar 10, 2009

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.