Skip to content

Commit 142c6f2

Browse files
authoredFeb 13, 2023
fix: disable stash by default when using diff option (#1259)
1 parent f88b6b7 commit 142c6f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ const lintStaged = async (
7575
quiet = false,
7676
relative = false,
7777
shell = false,
78-
stash = true,
78+
// Stashing should be disabled by default when the `diff` option is used
79+
stash = diff === undefined,
7980
verbose = false,
8081
} = {},
8182
logger = console

0 commit comments

Comments
 (0)
Please sign in to comment.