]> git.ipfire.org Git - thirdparty/git.git/commit - string-list.c
string_list: add function string_list_append_nodup()
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 12 Sep 2012 14:04:42 +0000 (16:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Sep 2012 18:43:24 +0000 (11:43 -0700)
commite448fed8e6ba9cd9237b7c8045c11cc40afc8595
tree29417037d3510afd9623a3f35c371a312179ee83
parent0ce986446163b37c7f663ce7a408e7f94c31ba63
string_list: add function string_list_append_nodup()

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 <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-string-list.txt
string-list.c
string-list.h