mirror of
https://github.com/kahole/edamagit.git
synced 2024-09-11 07:15:31 +03:00
refines stashing
This commit is contained in:
parent
e7dd1e6e44
commit
f14c5b7a56
@ -54,6 +54,10 @@
|
||||
{
|
||||
"command": "extension.magit-help",
|
||||
"title": "Magit Help"
|
||||
},
|
||||
{
|
||||
"command": "extension.magit-stashing",
|
||||
"title": "Magit Stashing"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
@ -89,6 +93,10 @@
|
||||
{
|
||||
"command": "extension.magit-pushing",
|
||||
"when": "editorLangId == magit"
|
||||
},
|
||||
{
|
||||
"command": "extension.magit-stashing",
|
||||
"when": "editorLangId == magit"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { MagitRepository } from "../models/magitRepository";
|
||||
import { DocumentView } from "../views/general/documentView";
|
||||
import { MenuItem } from "../menu/menuItem";
|
||||
import { MenuUtil } from "../menu/menu";
|
||||
import { commands } from "vscode";
|
||||
|
||||
@ -9,9 +8,9 @@ const stashingMenu = {
|
||||
commands: [
|
||||
{ label: "z", description: "Save", action: stash },
|
||||
//
|
||||
|
||||
{ label: "p", description: "Pop", action: popStash },
|
||||
{ label: "a", description: "Apply", action: applyStash }
|
||||
{ label: "a", description: "Apply", action: applyStash },
|
||||
{ label: "k", description: "Drop", action: dropStash }
|
||||
]
|
||||
};
|
||||
|
||||
@ -28,6 +27,10 @@ function applyStash() {
|
||||
return commands.executeCommand("git.stashApply");
|
||||
}
|
||||
|
||||
function dropStash() {
|
||||
return commands.executeCommand("git.stashDrop");
|
||||
}
|
||||
|
||||
function popStash() {
|
||||
return commands.executeCommand("git.stashPop");
|
||||
}
|
Loading…
Reference in New Issue
Block a user