Add command to drop all stashes

This commit is contained in:
Ladislau Szomoru
2022-01-07 11:11:01 +01:00
parent 419e16a49c
commit 302c41cf4e
4 changed files with 41 additions and 1 deletions

View File

@@ -1794,10 +1794,13 @@ export class Repository {
}
async dropStash(index?: number): Promise<void> {
const args = ['stash', 'drop'];
const args = ['stash'];
if (typeof index === 'number') {
args.push('drop');
args.push(`stash@{${index}}`);
} else {
args.push('clear');
}
try {