X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Ftechnical%2Fapi-string-list.txt;h=5a0c14fcebfcf4d5cbad4900d062703412c501e1;hb=b8939b2b3abaa99c18bf57251cd2828b89ac38c5;hp=ce24eb96f5efdee579f8600323731368fee4048b;hpb=1b048b197d6c183b69ad0914da127321c1e6b6a6;p=git.git diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt index ce24eb96f..5a0c14fce 100644 --- a/Documentation/technical/api-string-list.txt +++ b/Documentation/technical/api-string-list.txt @@ -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