fix: disable log.showSignature in git log calls

This commit is contained in:
Marc Cornellà
2022-01-10 19:39:05 +01:00
parent 971683762e
commit 9c84c344d7
7 changed files with 7 additions and 15 deletions

View File

@ -24,9 +24,7 @@ compdef _git _git_log_prettily=git-log
# Warn if the current branch is a WIP
function work_in_progress() {
if $(git log -n 1 2>/dev/null | grep -q -c "\-\-wip\-\-"); then
echo "WIP!!"
fi
command git -c log.showSignature=false log -n 1 2>/dev/null | grep -q -- "--wip--" && echo "WIP!!"
}
# Check if main exists and use instead of master