]> oss.titaniummirror.com Git - smckown/dotfiles.git/blobdiff - gitconfig
.gitconfig: add 'branches' alias
[smckown/dotfiles.git] / gitconfig
index 03591f193625cc2d804cd574e1f82e74bd649a71..60e9675047c137a4fc1d9a50aeaa5e09a798cf48 100644 (file)
--- a/gitconfig
+++ b/gitconfig
@@ -5,6 +5,7 @@
        ui = auto
 [alias]
        llog = log --date=local
+       branches = !git for-each-ref --sort='-authordate' --format='%(authordate)\t%(objectname:short)\t%(refname)' refs/{heads,remotes} | sed -e 's|refs/heads/||' -e 's|refs/remotes/||' | less
 [log]
        decorate = true
 [diff]