zsh:glog: Do not pass --graph by default
`--graph` can get very slow for large repos with many branches. Make `glog` independent of it and rather add an alias that uses `glog --graph`.
This commit is contained in:
@@ -116,8 +116,7 @@ else
|
|||||||
fzf_args+=(--preview-window=down)
|
fzf_args+=(--preview-window=down)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display an ascii graph of the commits in the above format and pipe that into
|
# Display the commits in the above format and pipe that into fzf.
|
||||||
# fzf.
|
git log "$formatshort" "$dateshort" --color=always "$@" \
|
||||||
git log "$formatshort" --graph "$dateshort" --color=always "$@" \
|
|
||||||
| env LESS="$LESS${LESS:+ }-+F" fzf "${fzf_args[@]}"
|
| env LESS="$LESS${LESS:+ }-+F" fzf "${fzf_args[@]}"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -70,7 +70,8 @@ fi
|
|||||||
alias gpush='git push'
|
alias gpush='git push'
|
||||||
alias gpull='git pull'
|
alias gpull='git pull'
|
||||||
alias gl='glog'
|
alias gl='glog'
|
||||||
alias gl{l,ogg}='glog --branches --remotes'
|
alias gll='glog --graph'
|
||||||
|
alias gl{ll,ogg}='glog --graph --branches --remotes'
|
||||||
alias gr='git rebase'
|
alias gr='git rebase'
|
||||||
alias grc='git rebase --continue'
|
alias grc='git rebase --continue'
|
||||||
alias grcia='git rebase --committer-date-is-author-date'
|
alias grcia='git rebase --committer-date-is-author-date'
|
||||||
|
|||||||
Reference in New Issue
Block a user