Skip to content

Instantly share code, notes, and snippets.

@kix
Created November 28, 2011 10:19
Show Gist options
  • Select an option

  • Save kix/1399880 to your computer and use it in GitHub Desktop.

Select an option

Save kix/1399880 to your computer and use it in GitHub Desktop.
Get all files modified by you
# will fail if you have commit comments containing '.php'
git log --author="<Your Name>" --stat=1000,1000 | grep '\S*\/.*\.php' | sed 's/|.*//' | sed 's/\s*//'
@kix

kix commented Nov 28, 2011

Copy link
Copy Markdown
Author

Generally you should be able to use this with PHP CodeSniffer like that:

phpcs `git log --author="stepan" --stat=1000,1000 | grep '\S*\/.*\.php' | sed 's/|.*//' | sed 's/\s*//'`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment