Skip to content

Added setting "git.autoRepositoryDetection"#36183

Merged
joaomoreno merged 2 commits intomicrosoft:masterfrom
sspaink:newAutoRepositoryDetection
Dec 11, 2017
Merged

Added setting "git.autoRepositoryDetection"#36183
joaomoreno merged 2 commits intomicrosoft:masterfrom
sspaink:newAutoRepositoryDetection

Conversation

@sspaink
Copy link

@sspaink sspaink commented Oct 13, 2017

Issue: #35555

This pull request adds the setting "git.autoRepositoryDetection". (Thank you for the suggestion @joaomoreno)

When opening just one file, the setting "autoRepositoryDetection" allows the user to control whether the entire repository changes will be displayed or just the changes of the current file.

example

Note: I deleted my previous pull request and created this new one because I accidentally messed it up through re-basing it. I had trouble cleanly reverting it so making a new pull request seemed like the best solution. Really sorry if that spammed anyone or wasn't the correct way to handle it. If anyone can let me know how to handle that better next time it would be greatly appreciated!

When opening just one file, the setting "autoRepositoryDetection" allows the user to control whether the entire repository changes will be displayed or just the changes of the current file.
@joaomoreno joaomoreno added this to the Backlog milestone Oct 16, 2017
@joaomoreno joaomoreno added the git GIT issues label Oct 16, 2017
Updated the "detectActiveFile" method to be more simple and straightforward.

Thanks to @lodenrogue suggestion!
@joaomoreno
Copy link
Member

joaomoreno commented Dec 11, 2017

Thanks! 🍻

The right fix should've been in model.ts. I simply moved it there: 530765e#diff-5d140a7159e83bdc81a4efdf806b8cd6

@joaomoreno joaomoreno modified the milestones: Backlog, December 2017 Dec 11, 2017
@sspaink sspaink deleted the newAutoRepositoryDetection branch December 11, 2017 17:49
@vogler
Copy link

vogler commented Feb 10, 2020

For me this does not seem to work:
2020-02-10_17-49-37 (1)
It opens all git submodules on reload but, more annoyingly, also when changing focus back to vscode from another window.
How can I keep them closed? If I just hide the source control providers sections, the change count still includes changes from submodules.

@vogler
Copy link

vogler commented Feb 10, 2020

I added the paths to the workspace's git.ignoredRepositories for now which keeps them closed.
I would prefer it if it remembered which repositories were closed.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants