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

    Reply here

    Your email address will not be published. Required fields are marked *

    Reply on your own site

    Reply elsewhere

    You can reply to this post on Mastodon (@dan@danq.me), Mastodon (@blog@danq.me).

    Reply by email

    I'd love to hear what you think. Send an email to b26757@danq.me; be sure to let me know if you're happy for your comment to appear on the Web!