git diff --name-only --diff-filter=M

Note to future self: when you want git to tell you all the files you've modified, but not those you've deleted (e.g. to pipe through xargs and feed to your linter for bulk-linting), the command you're looking for is -

git diff --name-only --diff-filter=M

0 comments

    Leave a comment

    Reply on your own site