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>
This commit is contained in:
parent
cf6ce01660
commit
5d64fb2051
@ -124,9 +124,7 @@ __gitcomp_nl_append ()
|
||||
|
||||
__gitcomp_file_direct ()
|
||||
{
|
||||
emulate -L zsh
|
||||
|
||||
compadd -f -- ${(f)1} && _ret=0
|
||||
__gitcomp_file "$1" ''
|
||||
}
|
||||
|
||||
__gitcomp_file ()
|
||||
|
Loading…
Reference in New Issue
Block a user