Thread (13 messages) flat view 13 messages, 2 authors, 2016-06-15

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

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:55:02

On Sun, Oct 14, 2012 at 5:52 PM, Felipe Contreras
[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help