Exit glog if not in git repo

This commit is contained in:
2020-09-04 09:44:45 +02:00
parent 0bd083f760
commit a985873b25

View File

@@ -323,6 +323,9 @@ function urldec() {
}
glog() {
# Return if not in git repo
git rev-parse || return
# One line format for fzf list view
# abbreviated commit hash (yellow), title and ref names
local formatshort='--pretty=format:%C(yellow)%h %Creset%s%C(auto)%d'