Re: [PATCH v5 2/3] tests: use __gitcompadd to simplify completion tests
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Oct 16, 2012, 00:24 UTC
- Message-ID
- <CAMP44s2ej4oz4E4tYk7hNjBXe-pvK-v2kQDuz9pg42stBtL61w@mail.gmail.com>
- In-Reply-To
- <1350229971-9343-3-git-send-email-felipe.contreras@gmail.com>
On Sun, Oct 14, 2012 at 5:52 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 6 quoted lines
> -print_comp ()
> +__gitcompadd ()
> {
> - local IFS=$'\n'
> - echo "${COMPREPLY[*]}" > out
> + compgen -P "${2-}" -S "${4- }" -W "$1" -- "${3-$cur}" > outRather:
compgen -W "$1" -P "$2" -S "$4" -- "$3" > out
-- Felipe Contreras