Closed rndware closed 3 years ago
Thanks for the idea. That would be handy though that would be a feature for "git diff" type extension as you wrote. It would essentially be:
git diff origin/remote-branch-name -- path/to/file-for-comparison.txt
I'm closing this for now, but feel free to reopen it if you think we should continue exploring this.
Currently there is not a plugin I'm aware of that can do a diff between the currently opened file and the same one on a specified branch name.
This is extremely handy if you're working on a feature branch, master gets updated, and you want to check what conflicts might arise if you attempt to merge the file.
I've just created a working POF:
https://github.com/ryu1kn/vscode-partial-diff/pull/52
I'm wondering if this could be part of a forked 'git diff' type of extension that could diff between refs of all different types.
Food for thought :)