completion: zsh: simplify file_direct
It's exactly the same as __gitcomp_file() with no prefix. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
Oct 27, 2020 at 20:07 UTC
5d64fb20511270ffb2d939210a5afe66419f69ab
1 file changed
+1
-3
contrib/completion/git-completion.zsh
+1
-3
@@ -124,9 +124,7 @@ __gitcomp_nl_append ()
124
125
__gitcomp_file_direct ()
126
{
127
- emulate -L zsh
128
-
129
- compadd -f -- ${(f)1} && _ret=0
127
+ __gitcomp_file "$1" ''
128
}
129
130
__gitcomp_file ()