Skip to content

Git - display incoming/outgoing commits in the Source Control view container #192290

Closed

Description

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.

image

Activity

  1. added
    feature-request
    on Sep 6, 2023
  2. tusharsnx commented on Oct 6, 2023

    @tusharsnx

    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.

  3. tusharsnx commented on Oct 9, 2023

    @tusharsnx

    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.

  4. Wladefant commented on Nov 26, 2023

    @Wladefant

    I am a bit new to the party how to I enable this setting?

  5. Wladefant commented on Nov 27, 2023

    @Wladefant

    Ok not that new. I have insiders installed, but where do I enable this setting?

  6. lszomoru commented on Nov 27, 2023

    @lszomoru
    MemberAuthor

    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.

    image

    Users can use the following settings to control whether incoming/outgoing changes are being shown:

    • scm.showIncomingChanges
    • scm.showOutgoingChanges
  7. jcapcik-np commented on Nov 28, 2023

    @jcapcik-np

    Yes! As a former Sourcetree user before switching to a Windows WSL env, this was a feature I desperately missed. Thank you!

  8. aosar commented on Dec 1, 2023

    @aosar

    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.

  9. lszomoru commented on Dec 6, 2023

    @lszomoru
    MemberAuthor

    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
    • git.showActionButton - disable action button individually (commit, publish, sync)
  10. benwinding commented on Dec 8, 2023

    @benwinding

    Future readers... to hide incoming/outgoing in VSCode ^ add this to your settings:

        "scm.showIncomingChanges" : false,
        "scm.showOutgoingChanges" : false,

    Polite feedback 🙏

    • 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 🥲

  11. gjsjohnmurray commented on Dec 8, 2023

    @gjsjohnmurray
    Contributor
    • I personally found this quite jarring to see this come up in the latest update, and had to Google how to hide it...

    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

  12. lszomoru commented on Dec 8, 2023

    @lszomoru
    MemberAuthor

    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.

  13. cary-hu commented on Dec 11, 2023

    @cary-hu

    Can we mark the new feature disabled by default. I spend too much time to found how to hide this.

  14. eduard-sb commented on Dec 11, 2023

    @eduard-sb

    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!

  15. lszomoru commented on Dec 14, 2023

    @lszomoru
    MemberAuthor

    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!

  16. Daniel-Griffiths commented on Dec 18, 2023

    @Daniel-Griffiths
        "scm.showIncomingChanges" : false,
        "scm.showOutgoingChanges" : false,

    Not sure if something has changed since, but I had the use the string "never" instead of false

      "scm.showIncomingChanges": "never",
      "scm.showOutgoingChanges": "never",
  17. locked and limited conversation to collaborators on Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions