Skip to content

Instantly share code, notes, and snippets.

@8bitDesigner
Created October 2, 2012 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8bitDesigner/3824108 to your computer and use it in GitHub Desktop.
Save 8bitDesigner/3824108 to your computer and use it in GitHub Desktop.
Pretty Print git logs
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]
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