Skip to content

Commit f203849

Browse files
committed
fix(stash): don't show deleted
1 parent ecefbe1 commit f203849

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "git-wiz",
3-
"version": "1.2.2",
3+
"version": "1.3.0",
44
"author": {
55
"email": "[email protected]",
66
"name": "Mosh Feu",

src/utils/wiz.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const reset = withErrorHandler(async () => {
2828
});
2929

3030
export const stash = withErrorHandler(async () => {
31-
const status = await gitStatus();
31+
const status = (await gitStatus()).filter(file => !file.deleted);
3232
if (!status.length) {
3333
console.log('\x1b[33m', 'Stash what exactly 🤥?');
3434
return;

0 commit comments

Comments
 (0)