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.
2 parents 6e874e1 + f67c5f1 commit a59bd5aCopy full SHA for a59bd5a
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