mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
string-list: document that string_list_insert() inserts unique strings
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8ced9c90a2
commit
b8939b2b3a
|
@ -83,7 +83,9 @@ Functions
|
|||
|
||||
Insert a new element to the string_list. The returned pointer can be
|
||||
handy if you want to write something to the `util` pointer of the
|
||||
string_list_item containing the just added string.
|
||||
string_list_item containing the just added string. If the given
|
||||
string already exists the insertion will be skipped and the
|
||||
pointer to the existing item returned.
|
||||
+
|
||||
Since this function uses xrealloc() (which die()s if it fails) if the
|
||||
list needs to grow, it is safe not to check the pointer. I.e. you may
|
||||
|
|
Loading…
Reference in a new issue