git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* limiting rename detection during merge is a really bad idea
@ 2008-02-11  6:19 Steffen Prohaska
  2008-02-11  7:42 ` Marco Costalba
  2008-02-11  7:48 ` Jeff King
  0 siblings, 2 replies; 11+ messages in thread
From: Steffen Prohaska @ 2008-02-11  6:19 UTC (permalink / raw)
  To: Git Mailing List

I almost lost faith in git's merging capabilities because merge-
recursive limits rename detection to the default limit if not
configured otherwise.  I tried to do a large merge and was pretty
convinced that git would handle the merge easily.  But it
unexpectedly failed to detect the renames.  The reason is that
merge-recursive uses the diff_rename_limit_default, which is 100,
and this was too low in my case.

After debugging all the merge and diff machinery I found out that
I just need to set diff.renamelimit=0 and everything works smoothly.

Well, it was an interesting debugging experience and I learnt a
lot about the diffcore.  Nonetheless this was one of the worst
experiences I had with git and it kept me from doing more important
work.

I think that limiting rename detection during merge is a really
bad idea.  Either we should set it to unlimited, or at least we
should print a BIG WARNING that rename detection is limited
during the merge.  I'd propose to override diff.renamelimit
to unlimited for a merge, even if diff.renamelimit is explicitly
configured by the user.  It doesn't make sense not to detect
renames during a merge.

Opinions?

	Steffen

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-11 13:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11  6:19 limiting rename detection during merge is a really bad idea Steffen Prohaska
2008-02-11  7:42 ` Marco Costalba
2008-02-11  7:48 ` Jeff King
2008-02-11  7:55   ` Marco Costalba
2008-02-11  8:03     ` Jeff King
2008-02-11 10:41   ` Lars Hjemli
2008-02-11 11:08     ` Jeff King
2008-02-11 11:20       ` Santi Béjar
2008-02-11 11:40         ` Jeff King
2008-02-11 13:29         ` Steffen Prohaska
2008-02-11 11:35       ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).