Git - Source control is not able to detect renaming a file #236857
Labels
bug
Issue identified by VS Code Team member as probable bug
git
GIT issues
timeline-git
Timeline view issues with Git history
Milestone
Does this issue occur when all extensions are disabled?: Yes
This has already been requested in #128981 but was chalked up to git's limitations despite git clearly being able to detect the file changes and, as a result, reconcile the file history (i.e. Timeview) even after a rename.
Steps to Reproduce:
git mv
without modifying any file contents.Expected behavior:
No change to timeview or individual commit contents.
Actual behavior:
The timeline and commit names are shown, but the contents are empty:
Edit: to be clear, renames can be both detected and dealt with using the following commands:
... where
42fcd1b
is the commit hash.There are probably other, possibly better, ways, but this is the most straightforward way I've found and been using.
The text was updated successfully, but these errors were encountered: