summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2020-10-27 20:07:02 -0600
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-28 14:30:59 -0700
commit5d64fb20511270ffb2d939210a5afe66419f69ab (patch)
tree7c08559d9ecd5a13d6a3f4229131330cc55b6536 /contrib
parentcompletion: zsh: simplify nl_append (diff)
downloadtgif-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.zsh4
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 ()