Skip to content

Instantly share code, notes, and snippets.

@rhowardiv
Created May 18, 2012 19:14
Show Gist options
  • Select an option

  • Save rhowardiv/2727118 to your computer and use it in GitHub Desktop.

Select an option

Save rhowardiv/2727118 to your computer and use it in GitHub Desktop.
jshint all the files I've touched
git log --name-status | gawk '/Richard Howard/{c = 1} /^commit/{c = 0} /^M |^A /{ if (c == 1) print $2 }' | grep '.js$\|.html$' | uniq | while read F; do if [ -f "$F" ]; then jshint "$F" --config=~/.jshintrc; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment