فهرست منبع

move decorations to the end of git log lines

They get annoying when they break up the log subject. Now all elements are
almost in their own "columns", much easier to visualise.
Weiyi Lou 13 سال پیش
والد
کامیت
a3ac806b7e
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[%an]%Cgreen%d %Creset%s... %C(cyan)%ar"'
+alias gl='git log --graph --pretty="format:%C(yellow)%h %Cblue[%an] %Creset%s...%C(cyan)%ar%Cgreen%d"'
 ## concise, branch-only log with train tracks
-alias glb='git log --graph --all --simplify-by-decoration --pretty="format:%C(yellow)%h %Cblue[%an]%Cgreen%d %Creset%s... %C(cyan)%ar"'
+alias glb='git log --graph --all --simplify-by-decoration --pretty="format:%C(yellow)%h %Cblue[%an] %Creset%s... %C(cyan)%ar%Cgreen%d"'
 ## search through history for particular text
 alias glS='git log -S'
 alias glp='git log --patch'