diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-10-27 20:07:02 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-28 14:30:59 -0700 |
commit | 5d64fb20511270ffb2d939210a5afe66419f69ab (patch) | |
tree | 7c08559d9ecd5a13d6a3f4229131330cc55b6536 /contrib | |
parent | completion: zsh: simplify nl_append (diff) | |
download | tgif-5d64fb20511270ffb2d939210a5afe66419f69ab.tar.xz |
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>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.zsh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index 7126c75001..4834ebc889 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -124,9 +124,7 @@ __gitcomp_nl_append () __gitcomp_file_direct () { - emulate -L zsh - - compadd -f -- ${(f)1} && _ret=0 + __gitcomp_file "$1" '' } __gitcomp_file () |