DEV Community

Discussion on: How to list files changed in current branch (and run prettier on them)

Collapse
 
jackvial profile image
Jack Vial

That's for sharing this Darragh. My PRs are looking prettier!
Here's a neat enough one liner for it. git diff --diff-filter=MA --name-only dev... | xargs npx prettier --write