davbeek / gitinspectorgui

0 stars 0 forks source link

Blame output does not correctly follow ownership across temporary file deletions #31

Open davbeek opened 1 month ago

davbeek commented 1 month ago

In group 208, year 2024, a student accidentally deleted file plant-shared.cif and later copied it back. In the blame output, the student is set as the blame author of all original lines in the file, even when --copy-move is set to its maximum value of 4.

GitinspectorGUI should show the same behavior as SmartGit for values of --copy-move of 3 and 4, following blame ownership across file deletions when the file is copied back later by another author.

davbeek commented 1 month ago

I googled a bit and found out from others asking similar questions, that the documentation seems to imply that `git blame -C -C -C would do the job (that is also what Copilot was saying initially), but apparently it doesn't work and nobody seems to know an answer to this.

Given this result, it is still strange how SmartGit is able to preserve the original owner in blame output after someone else has deleted and later restored the file.