From 78e920c33d8e8cca018f021c5f085b647c0f8c68 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 16 Nov 2012 16:34:37 +0100 Subject: gitconfig: Add branch-info alias --- .gitconfig | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig index ab4c609..9d5d3f1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -11,4 +11,9 @@ [alias] grp = !git --no-pager grep --color=auto tree = log --oneline --decorate --graph + branch-info = "!sh -c 'git branch --no-color | \ + sed -e \"s/*/ /\" | \ + while read branch; do \ + git log -1 --format=format:\"%Cred$branch:%Cblue %s %Cgreen%h%Creset (%ar)\" $branch | cat; echo; \ + done'" -- cgit