]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
.gitconfig: add 'branches' alias
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 16 Mar 2016 22:27:00 +0000 (16:27 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Wed, 16 Mar 2016 22:27:00 +0000 (16:27 -0600)
Lists all refs/heads and refs/remotes in order of authordate descending.
Shows which branches have been changed, in time order.

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]