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 mhag...@alum.mit.edu 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

[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 mhag...@alum.mit.edu --- Documentation/technical/api-string-list.txt | 17

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 mhag...@alum.mit.edu 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