Repository navigation
Changing autofetch to a string config which has "current", "all" and - #111090
Merged
Eric Amodio (eamodio) merged 5 commits intoDec 11, 2020
Merged
Conversation
Contributor
Author
|
Eric Amodio (@eamodio) is this the sort of change you was expecting? Can we get away with making fetchAll the default? |
Contributor
|
Jason Williams (@jasonwilliams) Thanks for taking a shot at this! Although, I meant to change "git.autofetch": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [
"all"
]
}
],
"scope": "resource",
"description": "%config.autofetch%",
"default": false,
"tags": [
"usesOnlineServices"
]
},So that way any existing value will continue to work and we can additionally set the |
Jason Williams (jasonwilliams)
force-pushed
the
autoFetchAll
branch
from
December 10, 2020 22:17
460f4b7 to
8cedc74
Compare
Contributor
Author
|
Eric Amodio (@eamodio) I've made the relevant changes now |
Jason Williams (jasonwilliams)
force-pushed
the
autoFetchAll
branch
from
December 10, 2020 23:52
427383a to
6ae1c04
Compare
| this.disable(); | ||
| } else { | ||
| this.enable(); | ||
| switch (gitConfig.get<string | boolean>('autofetch')) { |
Contributor
There was a problem hiding this comment.
Don't need to change this -- but FYI, you can change this to:
gitConfig.get<'all' | boolean>('autofetch')to be more specific.
Contributor
|
Jason Williams (@jasonwilliams) Thanks so much for the contribution! 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changing autofetch to a string config which has "current", "all" and "off".
This allows users to fetch from all remotes instead of just their origin.
For developers working on a Fork, this should make extensions work more intuitively.
This PR fixes #110811