-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git - display incoming/outgoing commits in the Source Control view container #192290
Comments
Thanks for adding this feature right inside Vscode 😄 I've been using Gitlens just to have this for a while now. I think the view only shows changes/commits for the current branch. I'd appreciate if we could have a drop down menu for selecting the branch also, so it can show the changes from other branches as well, and not having to checkout branches for the changes to show. The selected branch could be remembered for the entire session, and resets after closing/reopening Vscode. |
As a contributor, many people work on a cloned repo, that has multiple tracking branches to a remote branch on that repo. But, in most cases we want to compare against the original repo's Current workaround is to use |
I am a bit new to the party how to I enable this setting? |
@Wladefant at the moment you will need to be using Insiders |
Ok not that new. I have insiders installed, but where do I enable this setting? |
Yes! As a former Sourcetree user before switching to a Windows WSL env, this was a feature I desperately missed. Thank you! |
I am not a fan of this personally, so Im glad I found the setting to turn off. I was scared I did something wrong the first time I saw this. Additionaly, I don't like the "Sync Changes" button so dangerously close to the commit menu, and in place of the commit button. There a lot of changes I like to keep local or that I want to redo, rebase, cherry-pick, etc before pushing out. I dont want to accidentally hit that button and cause chaos with the history rewriting, being forced to force push to fix it. Not to mention potential security concerns (such as committing a secret that's only meant for your machine). |
@aosar, thank you very much for the feedback. The "action button" in the Source Control view is meant to help with making the "next action" easily accessible. After one commits changes, the button switches to "Sync Changes" as that is the next natural action. You can control the action button using the following settings:
|
I recommend checking the release notes after an update. This section is one of the headline items for 1.85 |
@benwinding, thank you very much for the feedback. Making toggling the visibility of the incoming/outgoing section has come up multiple times but I simply did not get to it. Having said that, I am planning on adding that in the upcoming release. |
Can we mark the new feature disabled by default. I spend too much time to found how to hide this. |
This feature currently only shows changes against the upstream branch, however if the commits on the current branch have introduced new files they won't show up. It'd be cool if they did! |
@eduard-sb, thanks for the feedback. Could you please file a separate issue so that I can track this. Providing a recording would also be really valuable for my to track down the root cause. Thanks! |
Not sure if something has changed since, but I had the use the string "scm.showIncomingChanges": "never",
"scm.showOutgoingChanges": "never", |
The latest Insiders release contains a new "Source Control Sync" experimental view that can be enabled by toggling the
scm.experimental.showSyncView
setting. This new view displays incoming/outgoing changes for the current branch compared to its upstream, or the default branch. Please give it a try and let me know what you think. Over the coming weeks we will continue to iterate on this view based on user feedback.The text was updated successfully, but these errors were encountered: