-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Feat: Add context menu command to reset current branch to tag #3769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9078,6 +9078,13 @@ | |
"icon": "$(gitlens-switch)", | ||
"enablement": "!operationInProgress" | ||
}, | ||
{ | ||
"command": "gitlens.graph.resetToTag", | ||
"title": "Reset Current Branch to Tag...", | ||
"category": "GitLens", | ||
"icon": "$(gitlens-reset)", | ||
"enablement": "!operationInProgress" | ||
}, | ||
{ | ||
"command": "gitlens.graph.createWorktree", | ||
"title": "Create Worktree...", | ||
|
@@ -12432,6 +12439,10 @@ | |
"command": "gitlens.graph.switchToTag", | ||
"when": "false" | ||
}, | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
"command": "gitlens.graph.resetToTag", | ||
"when": "false" | ||
}, | ||
{ | ||
"command": "gitlens.graph.createWorktree", | ||
"when": "false" | ||
|
@@ -16412,15 +16423,20 @@ | |
"when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && webviewItem =~ /gitlens:tag\\b/", | ||
"group": "1_gitlens_actions@1" | ||
}, | ||
{ | ||
"command": "gitlens.graph.resetToTag", | ||
"when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && webviewItem =~ /gitlens:tag\\b/", | ||
"group": "1_gitlens_actions@2" | ||
}, | ||
|
||
{ | ||
"command": "gitlens.graph.deleteTag", | ||
"when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && webviewItem == gitlens:tag", | ||
"group": "1_gitlens_actions@2" | ||
"group": "1_gitlens_actions@3" | ||
}, | ||
{ | ||
"command": "gitlens.graph.createBranch", | ||
"when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && webviewItem =~ /gitlens:tag\\b/", | ||
"group": "1_gitlens_actions@3" | ||
"group": "1_gitlens_actions@4" | ||
}, | ||
{ | ||
"command": "gitlens.graph.hideTag", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor nitpick: I know our package JSON is basically the "wild west" right now, and ordering is scrambled for the most part, but just to help the situation a touch, can we put this next to where the other
gitlens.graph.reset...
commands are?