Created
April 30, 2015 09:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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