Skip to content

Instantly share code, notes, and snippets.

@senthilnayagam
Created April 30, 2015 09:40
Show Gist options
  • Save senthilnayagam/ccdc3e668e44bdbf13ad to your computer and use it in GitHub Desktop.
Save senthilnayagam/ccdc3e668e44bdbf13ad to your computer and use it in GitHub Desktop.
which user knows which part of the code? this script helps you identify the files modified by a author
#!/bin/bash
set -e
git log --pretty="%H" --author="$1" | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq
#usage
# git modifiedby author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment