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>
This commit is contained in:
parent
2769e567d1
commit
bbd7f45884
@ -85,7 +85,7 @@ __gitcomp ()
|
|||||||
fi
|
fi
|
||||||
c="$c${4-}"
|
c="$c${4-}"
|
||||||
case $c in
|
case $c in
|
||||||
--*=*|*.) ;;
|
--*=|*.) ;;
|
||||||
*) c="$c " ;;
|
*) c="$c " ;;
|
||||||
esac
|
esac
|
||||||
array+=("$c")
|
array+=("$c")
|
||||||
|
Loading…
Reference in New Issue
Block a user