fix(git): escape first hyphen in gunwip

This commit is contained in:
Carlo Sala 2022-11-07 12:59:12 +01:00
parent ac0924930d
commit 0145d744a9
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A

View file

@ -302,7 +302,7 @@ alias gtv='git tag | sort -V'
alias gtl='gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl' alias gtl='gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl'
alias gunignore='git update-index --no-assume-unchanged' 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 gup='git pull --rebase'
alias gupv='git pull --rebase -v' alias gupv='git pull --rebase -v'
alias gupa='git pull --rebase --autostash' alias gupa='git pull --rebase --autostash'