changeset 792:0aa1d72ef538

add log graph alias
author Jeff Hammel <k0scist@gmail.com>
date Wed, 05 Oct 2016 13:50:55 -0700
parents 46674fb64686
children 82db7fa25a35
files .gitconfig
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.gitconfig	Tue Oct 04 11:05:20 2016 -0700
+++ b/.gitconfig	Wed Oct 05 13:50:55 2016 -0700
@@ -7,6 +7,7 @@
         branches = branch -a
         branchname = git rev-parse --abbrev-ref HEAD
         discard = reset HEAD --hard
+        graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative
         patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff
         pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD)
         root = rev-parse --show-toplevel