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>
maint
Felipe Contreras 2020-10-27 20:07:02 -06:00 committed by Junio C Hamano
parent cf6ce01660
commit 5d64fb2051
1 changed files with 1 additions and 3 deletions

View File

@ -124,9 +124,7 @@ __gitcomp_nl_append ()

__gitcomp_file_direct ()
{
emulate -L zsh

compadd -f -- ${(f)1} && _ret=0
__gitcomp_file "$1" ''
}

__gitcomp_file ()