summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2013-04-27 15:10:02 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-27 14:32:28 -0700
commit0afe8e9e98b0b066105e03476f7c8f4c14bc1c15 (patch)
treee46311de9ae124726ff628454f74f26ab6db480f /contrib/completion/git-completion.bash
parentcompletion; remove unuseful comments (diff)
downloadtgif-0afe8e9e98b0b066105e03476f7c8f4c14bc1c15.tar.xz
completion: use __gitcompadd for __gitcomp_file
Like the rest of the script does; let's not access COMPREPLY directly. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f7b0f3c8f0..7f1ebe4895 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -252,7 +252,7 @@ __gitcomp_file ()
# since tilde expansion is not applied.
# This means that COMPREPLY will be empty and Bash default
# completion will be used.
- COMPREPLY=($(compgen -P "${2-}" -W "$1" -- "${3-$cur}"))
+ __gitcompadd "$1" "${2-}" "${3-$cur}" ""
# Tell Bash that compspec generates filenames.
compopt -o filenames 2>/dev/null