Skip to content

Commit 9bc43c7

Browse files
authored
Git - Rename git.fetchBeforeCheckout to git.pullBeforeCheckout (microsoft#162303)
Rename git.fetchBeforeCheckout to git.pullBeforeCheckout
1 parent 9cad027 commit 9bc43c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

extensions/git/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,11 +2330,11 @@
23302330
"default": false,
23312331
"description": "%config.rebaseWhenSync%"
23322332
},
2333-
"git.fetchBeforeCheckout": {
2333+
"git.pullBeforeCheckout": {
23342334
"type": "boolean",
23352335
"scope": "resource",
23362336
"default": false,
2337-
"description": "%config.fetchBeforeCheckout%"
2337+
"description": "%config.pullBeforeCheckout%"
23382338
},
23392339
"git.fetchOnPull": {
23402340
"type": "boolean",

extensions/git/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"config.rebaseWhenSync": "Force git to use rebase when running the sync command.",
201201
"config.confirmEmptyCommits": "Always confirm the creation of empty commits for the 'Git: Commit Empty' command.",
202202
"config.fetchOnPull": "When enabled, fetch all branches when pulling. Otherwise, fetch just the current one.",
203-
"config.fetchBeforeCheckout": "Controls whether a branch that does not have outgoing commits is fast-forwarded before it is checked out.",
203+
"config.pullBeforeCheckout": "Controls whether a branch that does not have outgoing commits is fast-forwarded before it is checked out.",
204204
"config.pullTags": "Fetch all tags when pulling.",
205205
"config.pruneOnFetch": "Prune when fetching.",
206206
"config.autoStash": "Stash any changes before pulling and restore them after successful pull.",

extensions/git/src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class CheckoutItem implements QuickPickItem {
3838
}
3939

4040
const config = workspace.getConfiguration('git', Uri.file(this.repository.root));
41-
const fetchBeforeCheckout = config.get<boolean>('fetchBeforeCheckout', false) === true;
41+
const pullBeforeCheckout = config.get<boolean>('pullBeforeCheckout', false) === true;
4242

43-
if (fetchBeforeCheckout) {
43+
if (pullBeforeCheckout) {
4444
await this.repository.fastForwardBranch(this.ref.name!);
4545
}
4646

0 commit comments

Comments
 (0)