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