At least that's what I think it does, since it's n...
# intellij
k
At least that's what I think it does, since it's never the answer on any stackoverflow post about this problem.
🤔 1
g
yeah, that's right. Git doesn't track renames or copies in the index; it uses heuristics to determine if a changeset looks like a rename or a copy.
k
Thanks for the confirmation! Do you happen to know how this works behind the scenes? Does it store renames at all or is it determined at
log
-time?
g
At log/diff time only. There are some options you can change to tune how Git detects renames (https://git-scm.com/docs/git-diff#git-diff---break-rewritesltngtltmgt, https://git-scm.com/docs/git-diff#git-diff---find-renamesltngt). I think
--diff-algorithm=minimal
will probably also boost the chance of identifying renames too, but maybe only by tuning those 2 options listed.
k
Hmm too bad, thanks for elaborating though.