Skip to content

Commit 0541bbf

Browse files
authored
Merge pull request #4 from grvcoelho/next
diff: list only changed, added and modified files
2 parents f43e1dd + 4f902c2 commit 0541bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lint-diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const linter = new CLIEngine()
3030
const formatter = linter.getFormatter()
3131

3232
const getChangedFiles = pipeP(
33-
commitRange => exec('git', ['diff', commitRange, '--name-only']),
33+
commitRange => exec('git', ['diff', commitRange, '--name-only', '--diff-filter=ACM']),
3434
prop('stdout'),
3535
split('\n'),
3636
filter(endsWith('.js')),

0 commit comments

Comments
 (0)