From: Felipe Contreras Date: Sat, 27 Apr 2013 20:10:02 +0000 (-0500) Subject: completion: use __gitcompadd for __gitcomp_file X-Git-Tag: v1.8.4-rc0~242^2~5 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=0afe8e9e98b0b066105e03476f7c8f4c14bc1c15;p=git.git completion: use __gitcompadd for __gitcomp_file Like the rest of the script does; let's not access COMPREPLY directly. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- 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