Skip to content

Instantly share code, notes, and snippets.

@Ruxton
Created August 13, 2013 06:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ruxton/6218296 to your computer and use it in GitHub Desktop.
Save Ruxton/6218296 to your computer and use it in GitHub Desktop.
Gource joined committers caption
git_joined_committers_caption() {
authors=`git log --no-merges --format='%aN' | sort -u`
OLD_IFS=$IFS
IFS=$(echo -en "\n\b")
author_list=""
for author in $authors; do
author_first_commit=`git log --author="${author}" --pretty=format:%H|tail -1`
author_list+="$(git log -1 --format='%ct|%an started comitting' $author_first_commit)\n"
done
IFS=$OLD_IFS
echo -en $author_list|sort -u
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment