diff options
author | Carlo Sala <carlosalag@protonmail.com> | 2022-11-07 12:59:12 +0100 |
---|---|---|
committer | Carlo Sala <carlosalag@protonmail.com> | 2022-11-07 12:59:12 +0100 |
commit | 0145d744a9c4c11f00992f7f3ad9555bc8ac6177 (patch) | |
tree | ca2a56892e89d1cd682794a8ccdc2b40186118f5 /plugins | |
parent | ac0924930d48217e127523809dc5d386fb3403a4 (diff) | |
download | zsh-0145d744a9c4c11f00992f7f3ad9555bc8ac6177.tar.gz zsh-0145d744a9c4c11f00992f7f3ad9555bc8ac6177.tar.bz2 zsh-0145d744a9c4c11f00992f7f3ad9555bc8ac6177.zip |
fix(git): escape first hyphen in `gunwip`
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git/git.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index fc7699237..26f4beeb3 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -302,7 +302,7 @@ alias gtv='git tag | sort -V' alias gtl='gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl' alias gunignore='git update-index --no-assume-unchanged' -alias gunwip='git log -n 1 | grep -q -c "--wip--" && git reset HEAD~1' +alias gunwip='git log -n 1 | grep -q -c "\--wip--" && git reset HEAD~1' alias gup='git pull --rebase' alias gupv='git pull --rebase -v' alias gupa='git pull --rebase --autostash' |