summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-16 16:34:37 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-16 16:41:18 +0100
commit78e920c33d8e8cca018f021c5f085b647c0f8c68 (patch)
tree5f1fb6886a5a853c0f9b0263d45768af0684acc8 /.gitconfig
parent0b142eb78750d76238fe3d08b278fca45405ab4a (diff)
downloaddotfiles-78e920c33d8e8cca018f021c5f085b647c0f8c68.tar.gz
dotfiles-78e920c33d8e8cca018f021c5f085b647c0f8c68.tar.bz2
dotfiles-78e920c33d8e8cca018f021c5f085b647c0f8c68.zip
gitconfig: Add branch-info alias
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig5
1 files changed, 5 insertions, 0 deletions
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'"