Skip to content

Instantly share code, notes, and snippets.

@jwendell
Created October 26, 2016 11:58
Show Gist options
  • Save jwendell/f22ef34470e9ede71f3f0bb913071b32 to your computer and use it in GitHub Desktop.
Save jwendell/f22ef34470e9ede71f3f0bb913071b32 to your computer and use it in GitHub Desktop.
Find Clement Lefebvre contributions within GNOME
#!/bin/bash
AUTHOR="Clement Lefebvre"
for repo in *; do
if [ -d "$repo" ]; then
# echo "entering $repo"
cd "$repo"
contribs=$(git log --pretty=format:"%an" 2>/dev/null | grep "$AUTHOR" | wc -l)
if [ "$contribs" != "0" ]; then
echo "$repo - $contribs contributions"
fi
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment