Skip to content

Instantly share code, notes, and snippets.

@FrozenCow
Created January 20, 2014 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrozenCow/8518862 to your computer and use it in GitHub Desktop.
Save FrozenCow/8518862 to your computer and use it in GitHub Desktop.
List all git commits from multiple repositories chronologically, filtered by argument. Useful to know of all work that has been done over by someone (by filtering on email-address).
#!/bin/bash
for i in $(ls); do (cd $i && git log --format="%at|$i|%ae|%gs|%s"); done | grep "$1" | sort -n | awk -F'|' '{ print strftime("%F|%X|%A", $1) "|" $2 "|" $0; }' | cut -d'|' -f 1-4,8- | column -t -s'|' | less -S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment