Re: [PATCH v5 2/3] tests: use __gitcompadd to simplify completion tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 14, 2012 at 5:52 PM, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:

> -print_comp ()
> +__gitcompadd ()
>  {
> -       local IFS=$'\n'
> -       echo "${COMPREPLY[*]}" > out
> +       compgen -P "${2-}" -S "${4- }" -W "$1" -- "${3-$cur}" > out

Rather:

compgen -W "$1" -P "$2" -S "$4" -- "$3" > out

-- 
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]