Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get-all-local-authors.sh
#!/bin/bash
(for f in `find . -maxdepth 1 -type d`;
do
pushd > /dev/null $f
# only do something if there is a .git directory
# do something only if there is a .git directory
if [[ -d ".git" ]]
then
get-first-commit-log.sh | grep -m 1 Author: | cut -f2- -d' ' | awk -F'[<>]' '{print $2}'
fi
popd > /dev/null
done) | sort --ignore-case | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.