From b334d5ff66bc23c4fbaf6c64db190da016c07c93 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 9 Apr 2017 01:22:02 -0400 Subject: [PATCH] Adds stashed changes command to repo status --- src/quickPicks/repoStatus.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/quickPicks/repoStatus.ts b/src/quickPicks/repoStatus.ts index 4f2e92a..3488cb8 100644 --- a/src/quickPicks/repoStatus.ts +++ b/src/quickPicks/repoStatus.ts @@ -120,6 +120,11 @@ export class RepoStatusQuickPick { }, Commands.ShowQuickRepoStatus, [undefined, goBackCommand])); } + items.splice(0, 0, new CommandQuickPickItem({ + label: `$(repo-push) Show Stashed Changes`, + description: `\u00a0 \u2014 \u00a0\u00a0 shows stashed changes in the repository` + }, Commands.ShowQuickStashList, [new GitUri(Uri.file(status.repoPath), { fileName: '', repoPath: status.repoPath }), currentCommand])); + if (status.upstream && status.state.ahead) { items.splice(0, 0, new CommandQuickPickItem({ label: `$(cloud-upload)\u00a0 ${status.state.ahead} Commit${status.state.ahead > 1 ? 's' : ''} ahead of \u00a0$(git-branch) ${status.upstream}`,