You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Git - display incoming/outgoing commits in the Source Control view container #192290
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.
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 main (or any branch for that matter) where this change will be merged ultimately. Giving an optional "compare against" (along with 'Incoming Changes', 'Outgoing Changes') list item in the view would help in this case.
Current workaround is to use git branch -u original/main local-branch which then makes the 'Outgoing Changes' compare against original/main. However, this will make git push/pull more verbose as you'd have to use cloned remote name with the command every time.
We continued to iterate on this and we have settled to display incoming/outgoing changes in the main "Source Control" view in favour of a separate view. Views are great but they come with a cost, users have to expand, collapse, resize them. Another issue that we ran into is that having a separate view would have meant that we would have moved the "Sync Changes" action button to this new view, which we felt that it would be too disruptive of a change.
Users can use the following settings to control whether incoming/outgoing changes are being shown:
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).
That could also result in collaborative workflow disruptions. If somebody pulls your accidental change that is not ready to use, then they have to reach out to you, and if you force push a fix then you have to work with them to get back in sync, and it's just a mess.
Reacted by Tushar Singh, Yuriy Mann, Benoit de Chezelles, Ben Winding, Thales César Giriboni, Théo Billardey, jaketyler781, Maximilian Bernwieser, Zachary Ni, Mayra Lucia Navarro and 4 more
ari (@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:
scm.showActionButton - completely disable the action button
I personally found this quite jarring to see this come up in the latest update, and had to Google how to hide it...
There really should be a UI option within "Source Control" to toggle this feature
I appreciate the hard work that goes into VSCode. Thank you 🥲
Reacted by Larissa, codsane, Michael Repsher, Daniel Jimenez, GP4cK, Cary, Suho Lee, Павлов Алесь, Daniel Noeth, Enzo Diaz and 27 more
Reacted by Thales César Giriboni, qwinsi, codsane, Théo Billardey, Enzo Diaz, Trémus, Carolina Dorella, Matt Wolszczak, Andy Ruiz Garramones, Shir Raz and 1 more
Ben Winding (@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.
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 Vasilescu (@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!
Activity
tusharsnx commentedon Oct 6, 2023
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.
tusharsnx commentedon Oct 9, 2023
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
main(or any branch for that matter) where this change will be merged ultimately. Giving an optional "compare against" (along with 'Incoming Changes', 'Outgoing Changes') list item in the view would help in this case.Current workaround is to use
git branch -u original/main local-branchwhich then makes the 'Outgoing Changes' compare againstoriginal/main. However, this will makegit push/pullmore verbose as you'd have to use cloned remote name with the command every time.Wladefant commentedon Nov 26, 2023
I am a bit new to the party how to I enable this setting?
gjsjohnmurray commentedon Nov 26, 2023
Wladimir Kirjanovs (@Wladefant) at the moment you will need to be using Insiders
https://code.visualstudio.com/insiders
Wladefant commentedon Nov 27, 2023
Ok not that new. I have insiders installed, but where do I enable this setting?
lszomoru commentedon Nov 27, 2023
We continued to iterate on this and we have settled to display incoming/outgoing changes in the main "Source Control" view in favour of a separate view. Views are great but they come with a cost, users have to expand, collapse, resize them. Another issue that we ran into is that having a separate view would have meant that we would have moved the "Sync Changes" action button to this new view, which we felt that it would be too disruptive of a change.
Users can use the following settings to control whether incoming/outgoing changes are being shown:
jcapcik-np commentedon Nov 28, 2023
Yes! As a former Sourcetree user before switching to a Windows WSL env, this was a feature I desperately missed. Thank you!
aosar commentedon Dec 1, 2023
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).
That could also result in collaborative workflow disruptions. If somebody pulls your accidental change that is not ready to use, then they have to reach out to you, and if you force push a fix then you have to work with them to get back in sync, and it's just a mess.
lszomoru commentedon Dec 6, 2023
ari (@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:
benwinding commentedon Dec 8, 2023
Future readers... to hide
incoming/outgoingin VSCode ^ add this to your settings:Polite feedback 🙏
I appreciate the hard work that goes into VSCode. Thank you 🥲
gjsjohnmurray commentedon Dec 8, 2023
I recommend checking the release notes after an update. This section is one of the headline items for 1.85
https://code.visualstudio.com/updates/v1_85#_source-control
lszomoru commentedon Dec 8, 2023
Ben Winding (@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.
cary-hu commentedon Dec 11, 2023
Can we mark the new feature disabled by default. I spend too much time to found how to hide this.
eduard-sb commentedon Dec 11, 2023
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!
lszomoru commentedon Dec 14, 2023
Eduard Vasilescu (@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!
Daniel-Griffiths commentedon Dec 18, 2023
Not sure if something has changed since, but I had the use the string
"never"instead offalse