Просмотр исходного кода

add git log aliases for branch-only log and history searching

Weiyi Lou 13 лет назад
Родитель
Сommit
3435c3effd
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      zsh/omz-custom/git.zsh

+ 6 - 1
zsh/omz-custom/git.zsh

@@ -10,9 +10,14 @@ 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"'
+## 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"'
+## search through history for particular text
+alias glS='git log -S'
+alias glp='git log --patch'
 alias gls='git log --graph --stat'
-alias glp='git log -p'
 
 alias grb='git rebase'
 alias grh='git reset --hard'