]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/git-branch-dates
.bash_profile: Don't run keychain when sudo'ing
[dotfiles.git] / bin / git-branch-dates
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
7 echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k | head -n 1`\\t$k
8 done | sort -r