Closed tnrich closed 1 year ago
What is the git command you would run on the command line to revert a file to a given base ref? How would you deal with path renames?
git checkout origin/master [filename]
will revert file changes. This wouldn't handle renames though.
Wow @letmaik that was quick 🙏🤙🥴
I went ahead and implemented this in #91. It wasn't hard but there are a bunch of special cases to deal with. I pushed out a new release, let me know if you see any issues that should be fixed.
Working awesome so far @letmaik ! Really appreciate it!
@letmaik thanks again for this little change. I can't believe how helpful vscode-git-tree-compare is in my day to day workflow of tracking down how a PR broke tests.. so simple and so effective! 🙏
Hi there, again thanks for the great extension, I use it all the time!
One thing that would make it even better would be if you could add helper buttons next to the files a la the built in vscode diff view:
Right now there is only an open file button. In particular I think there should be a button to "Reset File to Master" next to each file:
Thanks!