Skip to content

Instantly share code, notes, and snippets.

@handyman5
Created October 10, 2011 06:20
Show Gist options
  • Save handyman5/1274737 to your computer and use it in GitHub Desktop.
Save handyman5/1274737 to your computer and use it in GitHub Desktop.
Line noise
for hb in `git branch -r | egrep -v "(modules|HEAD|>)" | cut -f2 -d/`; do for rm in `git branch -r | grep modules | cut -f3 -d/`; do r=`git rev-list -n1 remotes/origin/modules/$rm`; m=`git log --oneline remotes/origin/$hb -- modules/${rm}/manifests/init.pp | head -n1 | awk '{print $1}'`; if [[ -n "$m" ]]; then k=`git rev-list -n1 --parents $m | awk '{print $3}'`; if [[ "$r" != "$k" && -n "$k" ]]; then echo $hb $rm; git log --oneline $k..$r | while read z; do echo -n " $z"; echo; done; fi; fi; done; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment