summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-01-15 12:07:37 -0500
committerJune McEnroe <programble@gmail.com>2016-01-15 12:07:37 -0500
commit5bb806794cb3785a72925c95eb15402d123fcec9 (patch)
treef7854688b0aa16f7d3582b0604d7ee1d14e854f5
parentRemove unused git aliases (diff)
downloadsrc-5bb806794cb3785a72925c95eb15402d123fcec9.tar.gz
src-5bb806794cb3785a72925c95eb15402d123fcec9.zip
Move pretty git log format to .gitconfig
-rw-r--r--.gitconfig2
-rw-r--r--.zshrc2
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitconfig b/.gitconfig
index 3b0f18b1..c55324f3 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -13,6 +13,8 @@
 	autocorrect = 1
 [color]
 	ui = true
+[pretty]
+	log = %Cred%h %Creset%s%C(yellow)%d %Cgreen(%ar) %Cblue<%an>
 [sendemail]
 	smtpencryption = tls
 	smtpserver = smtp.gmail.com
diff --git a/.zshrc b/.zshrc
index ec27c88e..bdb5313e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -99,7 +99,7 @@ alias gca='git commit --amend'
 alias gcl='git clone'
 alias gco='git checkout'
 alias gd='git diff'
-alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --color"
+alias gl='git log --graph --pretty=log'
 alias gm='git merge'
 alias gmv='git mv'
 alias gp='git push'