Re:Happiness is a freshly organized codebase
by kccqzy on Thursday May 07, 2020 @10:31PM
(#23110810)
It does not. That's the same as doing a normal mv followed by git add. It does not record the fact that you moved it. You can verify this by moving a file and making big changes to it in the same commit. Git will forget that you moved it.
[ Parent
| on HN ]
Re:Happiness is a freshly organized codebase
by TechBro8615 on Thursday May 07, 2020 @11:37PM
(#23111169)
If you `git mv`, then immediately commit (without making any additional changes), I think it will recognize it as a move 100% of the time (i.e., will not use its "similarity index"). I'm not certain of that though.