Goswin von Brederlow wrote:
If you have 2 similar files, not identical, in different locations? I highly doubt that. If the files are identical then git will see the same hash for both and only store one copy. But not if the differ slightly.
You tell git when you move a file and it records the fact in the change record. Because of this it knows the predecessor file even though it has changed location, and can properly diff with it.