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:
2022-10-05 17:13:52 +02:00
parent bf7d9dbeeb
commit 1d99d5dbf5
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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'