4 ms·
This might not be the forum for it, but I have a question about this - I thought git was supposed to be pretty smart about detecting renames, but in my experien
by nlawalker 6y ago
This might not be the forum for it, but I have a question about this - I thought git was supposed to be pretty smart about detecting renames, but in my experience (on Windows) it never does, and I always have to use `git mv`. What's the deal with this?
- hrydgard 6y agoIt does work, check what happens after you git add it all, not before.
- ThePadawan 6y agoEven 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 https://stackoverflow.com/a/7831027/1237375 .