mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-19 17:25:57 -05:00
Adds 'Show Stashed Changes` command
Adds experimental 'Apply Stashed Changes' command Adds experimental 'Delete Stashed Changes' to stashed changes quick pick
This commit is contained in:
@@ -117,7 +117,12 @@ export class CommitQuickPickItem implements QuickPickItem {
|
||||
detail: string;
|
||||
|
||||
constructor(public commit: GitCommit, descriptionSuffix: string = '') {
|
||||
this.label = `${commit.author}, ${moment(commit.date).fromNow()}`;
|
||||
if (commit.author) {
|
||||
this.label = `${commit.author}, ${moment(commit.date).fromNow()}`;
|
||||
}
|
||||
else {
|
||||
this.label = `${moment(commit.date).fromNow()}`;
|
||||
}
|
||||
this.description = `\u00a0 \u2014 \u00a0\u00a0 $(git-commit) ${commit.shortSha}${descriptionSuffix}`;
|
||||
this.detail = commit.message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user