mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-09 17:52:39 -05:00
Reworks commanding structure for less redundancy
Adds command args copying when needed
This commit is contained in:
@@ -25,6 +25,7 @@ export class StashApplyCommand extends Command {
|
||||
async execute(args: StashApplyCommandArgs = { confirm: true, deleteAfter: false }) {
|
||||
if (!this.git.repoPath) return undefined;
|
||||
|
||||
args = { ...args };
|
||||
if (args.stashItem === undefined || args.stashItem.stashName === undefined) {
|
||||
const stash = await this.git.getStashList(this.git.repoPath);
|
||||
if (stash === undefined) return window.showInformationMessage(`There are no stashed changes`);
|
||||
|
||||
Reference in New Issue
Block a user