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)
|
||||
fi
|
||||
|
||||
# Display an ascii graph of the commits in the above format and pipe that into
|
||||
# fzf.
|
||||
git log "$formatshort" --graph "$dateshort" --color=always "$@" \
|
||||
# Display the commits in the above format and pipe that into fzf.
|
||||
git log "$formatshort" "$dateshort" --color=always "$@" \
|
||||
| env LESS="$LESS${LESS:+ }-+F" fzf "${fzf_args[@]}"
|
||||
return 0
|
||||
|
||||
@@ -70,7 +70,8 @@ fi
|
||||
alias gpush='git push'
|
||||
alias gpull='git pull'
|
||||
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 grc='git rebase --continue'
|
||||
alias grcia='git rebase --committer-date-is-author-date'
|
||||
|
||||
Reference in New Issue
Block a user