]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/git-brdate
Merge branch 'master' into epic
[dotfiles.git] / bin / git-brdate
1 #!/bin/bash
2 # Usage: git-brdate
3 # Show git branches by date - useful for showing active branches
4 # http://www.commandlinefu.com/commands/view/2345/show-git-branches-by-date-useful-for-showing-active-branches
5
6 for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r