Last active
December 18, 2015 23:29
-
-
Save christoph-jerolimov/5861818 to your computer and use it in GitHub Desktop.
This script shows a grouped (by date), ordered commit list of multiple git repositories.
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 | |
allgits=`find ~/.cocoapods/CUSTOMERNAME ~/git/CUSTOMERNAME -name .git | sed 's_/.git__'` | |
filter=$* | |
filter="$filter --author=jerolimov" | |
filter="$filter --date=iso" | |
filter="$filter --after=2013-05-01" | |
filter="$filter --before=2013-05-31" | |
for i in $allgits | |
do | |
cd $i | |
git --no-pager log $filter "--format=%ai [`basename $i`] %s" | |
cd - > /dev/null | |
done | sort | awk '{ if ($1 != p) { print p=$1; } $1=" "; print; }' | less |
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
2013-05-09 | |
15:46:15 +0200 [repo name] Initial project | |
16:39:16 +0200 [repo name] Add stuff | |
18:16:05 +0200 [just another repo] Do some other work | |
2013-05-12 | |
00:47:21 +0200 [just another repo] Finish work! | |
01:37:01 +0200 [just another repo] Here too! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment