Skip to content

Instantly share code, notes, and snippets.

@jerolimov
Last active December 18, 2015 23:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerolimov/5861818 to your computer and use it in GitHub Desktop.
Save 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.
#!/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
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