瀏覽代碼

Change git log aliases to use Author instead of Committer name

Authors are the people from whom the commits originate from. Committer is simply
the person who makes the commit. You can see the difference if you perform a
rebase of commits on a branch which multiple people work on, because the commit
authors are the various people, but the committer becomes you.
Weiyi Lou 13 年之前
父節點
當前提交
43f774c8ea
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      zsh/omz-custom/git.zsh

+ 2 - 2
zsh/omz-custom/git.zsh

@@ -11,9 +11,9 @@ alias gf='git fetch'
 alias gbd='git branch -D'
 
 ## standard log with train tracks
-alias gl='git log --graph --pretty="format:%C(yellow)%h %Cblue[%cn]%Cgreen%d %Creset%s... %C(cyan)%ar"'
+alias gl='git log --graph --pretty="format:%C(yellow)%h %Cblue[%an]%Cgreen%d %Creset%s... %C(cyan)%ar"'
 ## concise, branch-only log with train tracks
-alias glb='git log --graph --all --simplify-by-decoration --pretty="format:%C(yellow)%h %Cblue[%cn]%Cgreen%d %Creset%s... %C(cyan)%ar"'
+alias glb='git log --graph --all --simplify-by-decoration --pretty="format:%C(yellow)%h %Cblue[%an]%Cgreen%d %Creset%s... %C(cyan)%ar"'
 ## search through history for particular text
 alias glS='git log -S'
 alias glp='git log --patch'