Re: [PATCH v2 1/6] string_list: add function string_list_append_nodup()

2012-09-12 Thread Michael Haggerty
On 09/10/2012 11:56 PM, Junio C Hamano wrote: > Michael Haggerty writes: > >> diff --git a/string-list.c b/string-list.c >> index d9810ab..5594b7d 100644 >> --- a/string-list.c >> +++ b/string-list.c >> @@ -148,13 +148,23 @@ void print_string_list(const struct string_list *p, >> const char *text

Re: [PATCH v2 1/6] string_list: add function string_list_append_nodup()

2012-09-10 Thread Michael Haggerty
On 09/10/2012 11:56 PM, Junio C Hamano wrote: > Michael Haggerty writes: > >> diff --git a/string-list.c b/string-list.c >> index d9810ab..5594b7d 100644 >> --- a/string-list.c >> +++ b/string-list.c >> @@ -148,13 +148,23 @@ void print_string_list(const struct string_list *p, >> const char *text

Re: [PATCH v2 1/6] string_list: add function string_list_append_nodup()

2012-09-10 Thread Junio C Hamano
Michael Haggerty writes: > diff --git a/string-list.c b/string-list.c > index d9810ab..5594b7d 100644 > --- a/string-list.c > +++ b/string-list.c > @@ -148,13 +148,23 @@ void print_string_list(const struct string_list *p, > const char *text) > printf("%s:%p\n", p->items[i].string,

[PATCH v2 1/6] string_list: add function string_list_append_nodup()

2012-09-10 Thread Michael Haggerty
Add a new function that appends a string to a string_list without copying it. This can be used to pass ownership of an already-copied string to a string_list that has strdup_strings set. Signed-off-by: Michael Haggerty --- Documentation/technical/api-string-list.txt | 17 ++--- stri