Skip to content

Instantly share code, notes, and snippets.

@kylefritz
Last active November 22, 2019 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylefritz/2159e6c1c8d6fb4971a5cc0e43497d01 to your computer and use it in GitHub Desktop.
Save kylefritz/2159e6c1c8d6fb4971a5cc0e43497d01 to your computer and use it in GitHub Desktop.
run command `arc lint` on each file changed in a branch
git diff -z --name-only master | xargs -0 -I FILE_PATH arc lint FILE_PATH
# -z delimits files with null character
# -0 gobbls the null character
# -I ANYTHING declares ANYTHING as the replacement token (to be filled with 1 file name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment