We have an algorithm to detect files that have been moved or renamed. This allows us to keep track of changes in those files without considering that one file was deleted and the other file is all new.
The matches are currently used when doing issue tracking and we should also use them when detecting new lines of code.
So we have the following situations:
- Detection of new lines in a moved file based on the New Code Period, with SCM: works fine, blame info will correctly reflect the file move
- Detection of new line in a moved file based on the New Code Period, without SCM: doesn't work, generated modification dates based on our diff algorithm doesn't take into account moved file