From 0da6e20f4a880f0242dabeef0d7d7de1ee850ff9 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 7 Feb 2016 15:38:00 +0100 Subject: [PATCH] [git] better log format and new decoration colors --- gitconfig | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/gitconfig b/gitconfig index d55d680..c414287 100644 --- a/gitconfig +++ b/gitconfig @@ -1,8 +1,30 @@ +# Color palette translation: +# +# Solarized Git/ANSI +# --------- -------- +# base03 bold black +# base02 black +# base01 bold green +# base00 bold yellow +# base0 bold blue +# base1 bold cyan +# base2 white +# base3 bold white +# red red +# green green +# blue blue +# magenta magenta +# yellow yellow +# cyan cyan +# orange bold red +# violet bold magenta + [alias] a = add aa = add --all b = branch ba = branch --all + bav = branch --all --verbose bd = branch --delete cm = commit --verbose co = checkout @@ -11,8 +33,8 @@ dc = diff --cached dt = difftool ff = merge --ff-only - l = log --graph --format='%C(auto)%h%Cred%d %Creset%s %Cblue(%ar)' - la = log --graph --format='%C(auto)%h%Cred%d %Creset%s %Cblue(%ar)' --all + l = log --graph --format='%C(auto)%h%d %s %C(auto,bold green)%ar' + la = log --graph --format='%C(auto)%h%d %s %C(auto,bold green)%ar' --all ll = log --graph --decorate --stat lla = log --graph --decorate --stat --all pom = push origin master @@ -32,6 +54,13 @@ [color] ui = auto +[color "decorate"] + branch = blue + remoteBranch = bold red # orange + tag = green + stash = bold magenta + HEAD = cyan + [color "diff"] meta = blue frag = bold magenta # violet in solarized