b4a85eca9de2d2d2a31a2ca8f9e1846cf53108db
Author Marc Cornellà <marc.cornella@live.com> Committer Marc Cornellà <marc.cornella@live.com> Date 2016-03-30 02:46 UTC
Message Merge pull request #4728 from atk91/4727
Remove --color flag from git log aliases
The way to colorize `git log` output is by setting the `color.ui` configuration.
Diff 1 diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2 index 4291da7bac4b1a1870e99391bf8c895b06b1c660..95ce1ae262c4af2f6eab5da38fbb6d57591af4aa 100644
3 --- a/plugins/git/git.plugin.zsh
4 +++ b/plugins/git/git.plugin.zsh
5 @@ -146,15 +146,15 @@ alias gke='\gitk --all $(git log -g --pretty=format:%h)'
6 compdef _git gke='gitk'
7
8 alias gl='git pull'
9 -alias glg='git log --stat --color'
10 -alias glgp='git log --stat --color -p'
11 -alias glgg='git log --graph --color'
12 +alias glg='git log --stat'
13 +alias glgp='git log --stat -p'
14 +alias glgg='git log --graph'
15 alias glgga='git log --graph --decorate --all'
16 alias glgm='git log --graph --max-count=10'
17 -alias glo='git log --oneline --decorate --color'
18 +alias glo='git log --oneline --decorate'
19 alias glol="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
20 alias glola="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all"
21 -alias glog='git log --oneline --decorate --color --graph'
22 +alias glog='git log --oneline --decorate --graph'
23 alias glp="_git_log_prettily"
24 compdef _git glp=git-log
25