3 ms·
You can adjust Git's rename (and copy) sensitivity when using tools like diff, blame, and log. Git doesn't actually treat moves specially at all (even when you
by ZoFreX 12y ago
You can adjust Git's rename (and copy) sensitivity when using tools like diff, blame, and log. Git doesn't actually treat moves specially at all (even when you do git mv), each revision is (effectively) a simple snapshot of what all your bits were at that point in time.
Downside: It doesn't know what a rename is in your history and detects it at the point of use (that is, when you 'use' your history - e.g. when doing git log).
Upside: You can adjust what it thinks a rename is when you need to without changing anything, and if it gets better at detecting renames, you can benefit from that without having to rewrite history.