]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
.gitconfig: replace branches with heads dfltargs
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 16 Mar 2016 23:59:13 +0000 (17:59 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Wed, 16 Mar 2016 23:59:13 +0000 (17:59 -0600)
* Remove the branches alias
* Rely on git-heads being installed (git-utils.git)
* Local git-heads has a mod to use .gitconfig heads.dfltargs if the
  heads command is ran with no arguments and heads.dfltargs is not
  empty.

gitconfig

index 60e9675047c137a4fc1d9a50aeaa5e09a798cf48..ee6506631e42dd1291d813162a5733a2574f0e1b 100644 (file)
--- a/gitconfig
+++ b/gitconfig
@@ -5,7 +5,6 @@
        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]
@@ -23,3 +22,5 @@
        default = simple
 [branch]
        autosetuprebase = always
+[heads]
+       dfltargs = -a --author-date-order \"--format=format:%C(auto)%ad %h%d\"