From b8ea850d1946fc6022d1c0d953aca7583d3cecdd Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 14 Apr 2017 12:21:36 -0400 Subject: git aliases --- .config/git/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/git/config b/.config/git/config index 4fe81a5..2e85773 100644 --- a/.config/git/config +++ b/.config/git/config @@ -7,3 +7,5 @@ default = matching [alias] lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative + hist = log --format='%h %ci -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit + graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f" -- cgit v1.1-4-g5e80