Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get-all-local-repos-authors.sh
#!/bin/bash
echo ""
printf "| %-55s | %-40s | \n" "-------------------------------------------------------" "----------------------------------------";
printf "| %-55s | %-40s | \n" "Repo" "Author";
printf "| %-55s | %-40s | \n" "-------------------------------------------------------" "----------------------------------------";
for d in `find . -name .git -type d`; do
pushd $d/.. > /dev/null;
# do something only if there is a .git directory
if [[ -d ".git" ]]
then
AUTHOR_EMAIL=`(get-repo-first-author.sh)`
REPO_NAME=`basename ${PWD}`;
printf "| %-55s | %-40s | \n" $REPO_NAME $AUTHOR_EMAIL;
fi
popd > /dev/null;
done
printf "| %-55s | %-40s | \n" "-------------------------------------------------------" "----------------------------------------";
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.