Skip to content

Comment on Happiness is a freshly organized codebaseparent

Comments

Even if rename detection is enabled, git will only try to identify renames if it wouldn't take too much time (since IIRC it's a O(#files^2) operation).

Thus, there's a config "diff.renameLimit" and "merge.renameLimit" that tells git to only detect renames if less than N files are affected.

I have personally been burned by this before, and there usually is a default value set in most git clients.

See also some discussion at https://stackoverflow.com/a/7831027/1237375 .

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.