summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-14 12:21:36 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-14 12:21:36 -0400
commitb8ea850d1946fc6022d1c0d953aca7583d3cecdd (patch)
tree6735d27ebb11aa999b455b8e894a92f81a6b9d6f
parent9a97af80be45fcebfb83c852c56f7bf5299acce5 (diff)
git aliases
-rw-r--r--.config/git/config2
1 files changed, 2 insertions, 0 deletions
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"