Removes Stash Unstaged Changes option

Changes Stash Changes icon to a +
This commit is contained in:
Eric Amodio
2017-09-03 13:23:17 -04:00
parent 586785cfb8
commit 1b4350e476
2 changed files with 3 additions and 19 deletions

View File

@@ -8,7 +8,6 @@ import { CommandQuickPickItem } from '../quickPicks';
export interface StashSaveCommandArgs {
message?: string;
unstagedOnly?: boolean;
uris?: Uri[];
goBackCommand?: CommandQuickPickItem;
@@ -36,16 +35,12 @@ export class StashSaveCommand extends Command {
return this.execute(args);
}
async execute(args: StashSaveCommandArgs = { unstagedOnly: false }) {
async execute(args: StashSaveCommandArgs = { }) {
if (!this.git.repoPath) return undefined;
args = { ...args };
if (args.unstagedOnly === undefined) {
args.unstagedOnly = false;
}
try {
if (args.message == null) {
args = { ...args };
args.message = await window.showInputBox({
prompt: `Please provide a stash message`,
placeHolder: `Stash message`