mirror of
https://github.com/git/git.git
synced 2024-10-31 22:37:54 +01:00
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>
This commit is contained in:
parent
9ab8d18322
commit
0afe8e9e98
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue