Created
October 2, 2012 23:59
-
-
Save 8bitDesigner/3824108 to your computer and use it in GitHub Desktop.
Pretty Print git logs
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
BM-PSweeney ~/Sites $ for i in js *mint; do in_folder $i git_message; done | |
js (20121001d_release) [no ticket] - Removing debug statement | |
beautymint (20121001b_release) Merge pull request #73 from beachmint/feature/1890/groupTracking | |
homemint (20121001c_release) Bumping platform to work around [BM-2297] | |
intimint (20121001d_release) Bumping platform to work around [BM-2297] | |
jewelmint (20121001c_release) Bumping platform to work around [BM-2297] | |
shoemint (20121001e_release) Bumping platform to work around [BM-2297] | |
stylemint (20121001d_release) Bumping platform to work around [BM-2297] | |
BM-PSweeney ~/Sites $ for i in stylemint homemint shoemint; do in_folder $i git_message; done | |
homemint (20121001c_release) Bumping platform to work around [BM-2297] | |
shoemint (20121001e_release) Bumping platform to work around [BM-2297] | |
stylemint (20121001d_release) Bumping platform to work around [BM-2297] |
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
function git_message { | |
repo=`basename $PWD` | |
message=`git log -n1 --pretty=format:"%d %s" | perl -pe 's/HEAD, //'` | |
printf "%-10s %s\n" $repo $message | |
} | |
function in_folder { | |
cd $1 >/dev/null | |
${@:2} | |
cd - >/dev/null | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment