From f6304a06ccc192965e769f979da3cf39dd131fbd Mon Sep 17 00:00:00 2001 From: Wellington Mendoza Date: Fri, 24 Nov 2017 17:02:29 -0500 Subject: [PATCH] [git] Update log colour scheme Use yellow commit hash, cyan author, blue date, and auto ref names Closes #228 --- modules/git/init.zsh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/git/init.zsh b/modules/git/init.zsh index 48d0f48..453898c 100644 --- a/modules/git/init.zsh +++ b/modules/git/init.zsh @@ -6,11 +6,12 @@ # Settings # -# Log -_git_log_medium_format='%C(bold)Commit:%C(reset) %C(green)%H%C(red)%d%n%C(bold)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B' -_git_log_oneline_format='%C(green)%h%C(reset) %s%C(red)%d%C(reset)%n' -_git_log_fullgraph_format='%C(green)%h%C(reset) %<|(60,trunc)%s %C(bold blue)<%an>%C(reset) %C(yellow)(%cd)%C(reset)%C(auto)%d%C(reset)%n' -_git_log_brief_format='%C(green)%h%C(reset) %s%n%C(blue)(%ar by %an)%C(red)%d%C(reset)%n' +# Log colour scheme has yellow commit hash, cyan author, blue date, auto ref names +# See https://git-scm.com/docs/pretty-formats +_git_log_medium_format='%C(bold)Commit:%C(reset) %C(yellow)%H%C(auto)%d%n%C(bold)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B' +_git_log_oneline_format='%C(yellow)%h%C(reset) %s%C(auto)%d%C(reset)%n' +_git_log_fullgraph_format='%C(yellow)%h%C(reset) %<|(60,trunc)%s %C(cyan)<%an> %C(blue)(%cd)%C(auto)%d%C(reset)%n' +_git_log_brief_format='%C(yellow)%h%C(reset) %s%n%C(blue)(%ar by %an)%C(auto)%d%C(reset)%n' # # Aliases