mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-13 11:38:40 -05:00
Adds stashed changes command to repo status
This commit is contained in:
@@ -120,6 +120,11 @@ export class RepoStatusQuickPick {
|
|||||||
}, Commands.ShowQuickRepoStatus, [undefined, goBackCommand]));
|
}, 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) {
|
if (status.upstream && status.state.ahead) {
|
||||||
items.splice(0, 0, new CommandQuickPickItem({
|
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}`,
|
label: `$(cloud-upload)\u00a0 ${status.state.ahead} Commit${status.state.ahead > 1 ? 's' : ''} ahead of \u00a0$(git-branch) ${status.upstream}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user