diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-16 16:34:37 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-16 16:41:18 +0100 |
commit | 78e920c33d8e8cca018f021c5f085b647c0f8c68 (patch) | |
tree | 5f1fb6886a5a853c0f9b0263d45768af0684acc8 /.gitconfig | |
parent | 0b142eb78750d76238fe3d08b278fca45405ab4a (diff) | |
download | dotfiles-78e920c33d8e8cca018f021c5f085b647c0f8c68.tar.gz dotfiles-78e920c33d8e8cca018f021c5f085b647c0f8c68.tar.bz2 dotfiles-78e920c33d8e8cca018f021c5f085b647c0f8c68.zip |
gitconfig: Add branch-info alias
Diffstat (limited to '.gitconfig')
-rw-r--r-- | .gitconfig | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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'" |