File tree Expand file tree Collapse file tree 6 files changed +19
-2
lines changed Expand file tree Collapse file tree 6 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1624
1624
"label": "Git Rename Branch...",
1625
1625
"commandPalette": "!gitlens:disabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
1626
1626
},
1627
+ "gitlens.gitCommands.branch.upstream": {
1628
+ "label": "Git Change Branch Upstream...",
1629
+ "commandPalette": "!gitlens:disabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
1630
+ },
1627
1631
"gitlens.gitCommands.checkout": {
1628
1632
"label": "Git Checkout...",
1629
1633
"commandPalette": "!gitlens:disabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 6701
6701
"title": "Git Rename Branch...",
6702
6702
"category": "GitLens"
6703
6703
},
6704
+ {
6705
+ "command": "gitlens.gitCommands.branch.upstream",
6706
+ "title": "Git Change Branch Upstream...",
6707
+ "category": "GitLens"
6708
+ },
6704
6709
{
6705
6710
"command": "gitlens.gitCommands.checkout",
6706
6711
"title": "Git Checkout...",
11207
11212
"command": "gitlens.gitCommands.branch.rename",
11208
11213
"when": "!gitlens:disabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
11209
11214
},
11215
+ {
11216
+ "command": "gitlens.gitCommands.branch.upstream",
11217
+ "when": "!gitlens:disabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
11218
+ },
11210
11219
{
11211
11220
"command": "gitlens.gitCommands.checkout",
11212
11221
"when": "!gitlens:disabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
Original file line number Diff line number Diff line change @@ -812,7 +812,7 @@ export class BranchGitCommand extends QuickCommand {
812
812
state . reference . upstream != null
813
813
? {
814
814
label : 'Unset Upstream' ,
815
- description : 'Remove any upstream tracking' ,
815
+ description : 'Removes any upstream tracking' ,
816
816
button : { icon : new ThemeIcon ( 'discard' ) , tooltip : 'Unset Upstream' } ,
817
817
}
818
818
: undefined ,
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ export class GitWizardCommand extends QuickWizardCommandBase {
54
54
'gitlens.gitCommands.branch.delete' ,
55
55
'gitlens.gitCommands.branch.prune' ,
56
56
'gitlens.gitCommands.branch.rename' ,
57
+ 'gitlens.gitCommands.branch.upstream' ,
57
58
'gitlens.gitCommands.checkout' ,
58
59
'gitlens.gitCommands.cherryPick' ,
59
60
'gitlens.gitCommands.history' ,
@@ -101,6 +102,8 @@ export class GitWizardCommand extends QuickWizardCommandBase {
101
102
return this . execute ( { command : 'branch' , state : { subcommand : 'prune' } } ) ;
102
103
case 'gitlens.gitCommands.branch.rename' :
103
104
return this . execute ( { command : 'branch' , state : { subcommand : 'rename' } } ) ;
105
+ case 'gitlens.gitCommands.branch.upstream' :
106
+ return this . execute ( { command : 'branch' , state : { subcommand : 'upstream' } } ) ;
104
107
case 'gitlens.gitCommands.cherryPick' :
105
108
return this . execute ( { command : 'cherry-pick' } ) ;
106
109
case 'gitlens.gitCommands.history' :
Original file line number Diff line number Diff line change @@ -714,6 +714,7 @@ export type ContributedPaletteCommands =
714
714
| 'gitlens.gitCommands.branch.delete'
715
715
| 'gitlens.gitCommands.branch.prune'
716
716
| 'gitlens.gitCommands.branch.rename'
717
+ | 'gitlens.gitCommands.branch.upstream'
717
718
| 'gitlens.gitCommands.checkout'
718
719
| 'gitlens.gitCommands.cherryPick'
719
720
| 'gitlens.gitCommands.history'
You can’t perform that action at this time.
0 commit comments