letmaik / vscode-git-tree-compare

🎄 VS Code extension for comparing the git working tree against a branch, tag, or commit, displayed as folder tree
https://marketplace.visualstudio.com/items?itemName=letmaik.git-tree-compare
MIT License
60 stars 7 forks source link

Indicates that file is modified while it's identical #88

Open KleaTech opened 1 year ago

KleaTech commented 1 year ago

In a commit I changed a file and in the working tree I edited it back to be as originally was. Observation: Tree Compare still indicates it as modified. Expectation: I'd like to see the files that are currently different between a given commit and the working tree.

letmaik commented 1 year ago

This shouldn't happen, can you give a step by step repro of this, ideally with screenshots?

guy-ghub commented 1 week ago

I have encountered a similar problem. I don't have screen shots, but it happened when I had local files which were different the the compared commit. The files, in my case, were not under the observed root, i.e. were under the '/' folder. After I compared and added the changes locally, it still showed the files as modified even though the files were the same (refresh did not help, nor changing the diff mode). Only after committing and pushing the changes it finally updated.