diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-10-27 20:07:07 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-28 14:30:59 -0700 |
commit | bbd7f45884ca379e3cd28bb5fb8e804bcfb3360c (patch) | |
tree | 77c512a9b8044d0c4ad25263aeef7318359475d8 /contrib/completion | |
parent | completion: zsh: add alias descriptions (diff) | |
download | tgif-bbd7f45884ca379e3cd28bb5fb8e804bcfb3360c.tar.xz |
completion: zsh: trivial simplification
>From upstream bash simplification:
d9ee1e0617 (completion: simplify inner 'case' pattern in __gitcomp())
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index 1204a55890..2956b9d0d8 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -85,7 +85,7 @@ __gitcomp () fi c="$c${4-}" case $c in - --*=*|*.) ;; + --*=|*.) ;; *) c="$c " ;; esac array+=("$c") |