From f203849082d9678df98d92ad3dfbfc6cf4288faa Mon Sep 17 00:00:00 2001 From: Mosh Feu Date: Wed, 23 Sep 2020 02:22:55 +0300 Subject: [PATCH] fix(stash): don't show deleted --- package.json | 2 +- src/utils/wiz.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7cd9b04..a91187d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "git-wiz", - "version": "1.2.2", + "version": "1.3.0", "author": { "email": "moshfeu.dev@gmail.com", "name": "Mosh Feu", diff --git a/src/utils/wiz.ts b/src/utils/wiz.ts index cb82c2a..da60250 100644 --- a/src/utils/wiz.ts +++ b/src/utils/wiz.ts @@ -28,7 +28,7 @@ export const reset = withErrorHandler(async () => { }); export const stash = withErrorHandler(async () => { - const status = await gitStatus(); + const status = (await gitStatus()).filter(file => !file.deleted); if (!status.length) { console.log('\x1b[33m', 'Stash what exactly 🤥?'); return;