Created
October 28, 2011 18:17
-
-
Save vpetro/1322960 to your computer and use it in GitHub Desktop.
petro
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 | |
set -e | |
CURDIR=`pwd` | |
AUTHOR=$1 | |
FORMAT="%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset" | |
SINCE="15 months ago" | |
UNTIL="14 months ago" | |
DIRS=`find . -type d -name ".*git" -exec dirname {} \; | egrep -v "\w+/GazaroUtilities" | sed "s/^..//"` | |
for DIR in $DIRS; do | |
cd $DIR | |
CLEAN_DIR=`echo $DIR | tr "/" "-"` | |
git log --author="${AUTHOR}" --since="${SINCE}" --until="${UNTIL}" --format="${FORMAT}" | sed "s/.*/{$CLEAN_DIR} &/" | |
cd $CURDIR | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment