From: R. Steve McKown Date: Wed, 16 Mar 2016 23:59:13 +0000 (-0600) Subject: .gitconfig: replace branches with heads dfltargs X-Git-Url: https://oss.titaniummirror.com/gitweb?p=smckown%2Fdotfiles.git;a=commitdiff_plain;h=96fabb8f4048e221061012182b561b597eac1414 .gitconfig: replace branches with heads dfltargs * 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. --- diff --git a/gitconfig b/gitconfig index 60e9675..ee65066 100644 --- 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\"