From 24b149789dbd03893dc76c0105edfdf00b619e47 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Thu, 12 May 2016 10:13:59 -0500 Subject: [PATCH] git: add recent alias add recent alias to show the most recently updated branches --- git/gitconfig.symlink | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index 5ae0ac7..72f9938 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -70,6 +70,9 @@ assumed = "!git ls-files -v | grep ^h | cut -c 3-" unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged" + # show the most recently touched branches + recent = "!git for-each-ref --sort='-committerdate' --format='%(color:red)%(refname)%(color:reset)%09%(committerdate)' refs/heads | sed -e 's-refs/heads/--' | less -r" + # grep commands # 'diff grep' @@ -149,3 +152,6 @@ trustexitcode = true [rebase] instructionFormat = "[%an - %ar] %s" +[pager] + diff = "diff-so-fancy | less --tabs=4 -RFX" + show = "diff-so-fancy | less --tabs=4 -RFX"