093b56a7d769d15bdcc2c5300bc4ebedc9d0a837

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

git: fix gtl alias argument

Fixes the error `no matches found` because the argument is not quoted.
See https://github.com/robbyrussell/oh-my-zsh/pull/7629#issuecomment-531151821

Diff

 1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
 2index 2edee02982333f81134a8ed0e39a6cc5239c4afd..d8c4cffd10c645de7ea41aa0acd030a7c7124095 100644
 3--- a/plugins/git/git.plugin.zsh
 4+++ b/plugins/git/git.plugin.zsh
 5@@ -243,7 +243,7 @@ alias gswc='git switch -c'
 6 
 7 alias gts='git tag -s'
 8 alias gtv='git tag | sort -V'
 9-alias gtl='gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl'
10+alias gtl='gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl'
11 
12 alias gunignore='git update-index --no-assume-unchanged'
13 alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'