Skip to content

Commit

Permalink
Add added files to filter
Browse files Browse the repository at this point in the history
Adding ``--diff-filter=M` will only show modified files, but darker should also check newly added files. Add the `A` option to the diff call to include these
  • Loading branch information
Svenito committed Mar 7, 2024
1 parent 0fdabb3 commit 33f27e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darker/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def _git_diff_name_only(
"diff",
"--name-only",
"--relative",
"--diff-filter=M",
"--diff-filter=MA",
rev1,
# rev2 is inserted here if not WORKTREE
"--",
Expand Down

0 comments on commit 33f27e9

Please sign in to comment.