aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-27 15:10:02 -0500
committerJunio C Hamano <gitster@pobox.com>2013-04-27 14:32:28 -0700
commit0afe8e9e98b0b066105e03476f7c8f4c14bc1c15 (patch)
treee46311de9ae124726ff628454f74f26ab6db480f /contrib
parent9ab8d18322657db8bbe0cdf3b0dc19b479a3d4e5 (diff)
downloadgit-0afe8e9e98b0b066105e03476f7c8f4c14bc1c15.tar.gz
git-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')
-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 f7b0f3c8f..7f1ebe489 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