summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-10 19:39:05 +0100
committerMarc Cornellà <hello@mcornella.com>2022-01-10 19:39:05 +0100
commit9c84c344d762b200de7acc794b9a0e7832144e7a (patch)
tree0b177e0ca390c6a5315d7397a51dc5b1f2806529 /plugins
parent971683762e3aba543b0dc787e8a5ee1c16b5ace7 (diff)
downloadzsh-9c84c344d762b200de7acc794b9a0e7832144e7a.tar.gz
zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.tar.bz2
zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.zip
fix: disable `log.showSignature` in `git log` calls
Diffstat (limited to 'plugins')
-rw-r--r--plugins/git/git.plugin.zsh4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 648fa0a33..8f7e623ec 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -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