microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.44k stars 29.35k forks source link

Git: diff popup - compare changes to other git refs #229867

Open moniuch opened 1 month ago

moniuch commented 1 month ago

I'll be talking about these Git Changes ribbon in the gutter next to the line numbers:

image

These ribbons show the difference between the current file state and HEAD. Which is great, what I need most of the time, however sometimes, when your work is taking much longer than usual, you might lose the account of what this line looked like on master/main before you touched it. So I was thinking - would this be possible to add a dropdown in the header of this popup, to select other git ref to compare to:

...and remember this choice globally.

Of course, as a workaround, you can just go and browse your repo, but it'd be great I think to be able to do that diffing within IDE.

vs-code-engineering[bot] commented 1 month ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

alexandruavadanii commented 1 month ago

Related (and might depend on): https://github.com/microsoft/vscode/issues/196759