509a5549008c178e982bc8f728a07a2e2dbc58a9
Author Max Gautier <mgautier@student.42.fr> Committer Marc Cornellà <marc.cornella@live.com> Date 2018-09-12 17:35 UTC
Message git: use color auto for ref names in git log (#5729)
Allow the ref names to have differents colors if they are remote refs
or local refs, and another color for HEAD
(use the same coloring scheme as --decorate option)
Diff 1 diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2 index 16bf9e0db6319476557bb00e390813cbc8569709..45a706173c7b3ff5125eba9f77aadc5afe9019dd 100644
3 --- a/plugins/git/git.plugin.zsh
4 +++ b/plugins/git/git.plugin.zsh
5 @@ -183,11 +183,11 @@ alias glgg='git log --graph'
6 alias glgga='git log --graph --decorate --all'
7 alias glgm='git log --graph --max-count=10'
8 alias glo='git log --oneline --decorate'
9 -alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
10 -alias glols="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
11 -alias glod="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
12 -alias glods="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
13 -alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
14 +alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
15 +alias glols="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
16 +alias glod="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
17 +alias glods="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
18 +alias glola="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
19 alias glog='git log --oneline --decorate --graph'
20 alias gloga='git log --oneline --decorate --graph --all'
21 alias glp="_git_log_prettily"