Created
January 20, 2014 12:00
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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