We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e874e1 commit f67c5f1Copy full SHA for f67c5f1
src/gitChangedFilesSinceLastHead.js
@@ -1,5 +1,6 @@
1
import { execaSync } from 'execa';
2
3
-export default () => execaSync({ lines: true })`git diff-tree --name-only --no-commit-id -r HEAD@{1} HEAD`
+// Get the list of changed files since the previous HEAD from a git hook
4
+export default () => execaSync({ lines: true })`git diff-tree --name-only --no-commit-id --diff-filter=d --ignore-submodules -r HEAD@{1} HEAD`
5
.stdout
6
.filter((file) => !!file);
0 commit comments