From 97c7a0a35fb047650353467307dcaae61f48b8e7 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 13 Aug 2010 11:46:41 -0500 Subject: [PATCH] Add git-brdate --- .gitconfig | 1 + bin/git-brdate | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 bin/git-brdate diff --git a/.gitconfig b/.gitconfig index 4723821..e020642 100644 --- a/.gitconfig +++ b/.gitconfig @@ -18,6 +18,7 @@ df = diff lg = log -p who = shortlog -s -- + brdate = !git-brdate [core] filemode = true diff --git a/bin/git-brdate b/bin/git-brdate new file mode 100755 index 0000000..b5a2ee1 --- /dev/null +++ b/bin/git-brdate @@ -0,0 +1,6 @@ +#!/bin/bash +# Usage: git-brdate +# Show git branches by date - useful for showing active branches +# http://www.commandlinefu.com/commands/view/2345/show-git-branches-by-date-useful-for-showing-active-branches + +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 -- 2.45.2