After a file is renamed in Git, Git sort of loses track of it. "git mv" is literally the same as "git rm" followed by "git add".

There are various solutions, in particular git log --follow, but it's unreliable.

this is one suggested way to slightly improve the situation

an even better improvement