aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-03-30 20:25:55 -0700
committerJunio C Hamano <gitster@pobox.com>2012-03-30 20:25:55 -0700
commit19a6cd372a998df3079d870e02c064c5bb101841 (patch)
treeea64d8d12431bdfc2636cfe879f66eeaeb19c3a4
parentb3065bdc03dd91561e35f91896aec8c64667d1a9 (diff)
parentb8939b2b3abaa99c18bf57251cd2828b89ac38c5 (diff)
downloadgit-19a6cd372a998df3079d870e02c064c5bb101841.tar.gz
git-19a6cd372a998df3079d870e02c064c5bb101841.tar.xz
Merge branch 'maint'
* maint: string-list: document that string_list_insert() inserts unique strings
-rw-r--r--Documentation/technical/api-string-list.txt4
1 files changed, 3 insertions, 1 deletions
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