a5850d441b2168bbcc17ddcbe03c9b9cdb2720e0
- Author
- Neil Girdhar <mistersheik@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(git): change from commiter to author in `git log` aliases (#9670)
Diff
1diff --git a/plugins/git/README.md b/plugins/git/README.md
2index 48cf8720404ff5b55291a1db9ac7847b6f59dcfc..13571c8219248605ef1f6891526ae275fd9eac28 100644
3--- a/plugins/git/README.md
4+++ b/plugins/git/README.md
5@@ -98,11 +98,11 @@ plugins=(... git)
6 | glgga | git log --graph --decorate --all |
7 | glgm | git log --graph --max-count=10 |
8 | glo | git log --oneline --decorate |
9-| glol | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' |
10-| glols | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat |
11+| glol | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' |
12+| glols | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat |
13 | glod | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' |
14 | glods | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short |
15-| glola | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all |
16+| glola | git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all |
17 | glog | git log --oneline --decorate --graph |
18 | gloga | git log --oneline --decorate --graph --all |
19 | glp | git log --pretty=\<format\> |
20diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
21index 2985ba0243cc912b1b2919d8475deb76e5876efe..03769ed0f7cc3c2b3bf3c98ff7d31e04007cd68d 100644
22--- a/plugins/git/git.plugin.zsh
23+++ b/plugins/git/git.plugin.zsh
24@@ -210,11 +210,11 @@ alias glgg='git log --graph'
25 alias glgga='git log --graph --decorate --all'
26 alias glgm='git log --graph --max-count=10'
27 alias glo='git log --oneline --decorate'
28-alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
29-alias glols="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
30+alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'"
31+alias glols="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat"
32 alias glod="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
33 alias glods="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
34-alias glola="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
35+alias glola="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all"
36 alias glog='git log --oneline --decorate --graph'
37 alias gloga='git log --oneline --decorate --graph --all'
38 alias glp="_git_log_prettily"