diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-10-28 03:07:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-28 22:30:59 +0100 |
commit | bbd7f45884ca379e3cd28bb5fb8e804bcfb3360c (patch) | |
tree | 77c512a9b8044d0c4ad25263aeef7318359475d8 /contrib/completion/git-completion.zsh | |
parent | completion: zsh: add alias descriptions (diff) | |
download | git-bbd7f45884ca379e3cd28bb5fb8e804bcfb3360c.tar.xz git-bbd7f45884ca379e3cd28bb5fb8e804bcfb3360c.zip |
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/git-completion.zsh')
-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") |