git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v6 2/4] string-list: document that string_list_insert() inserts unique strings

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Mar 29, 2012, 07:21 UTC
Message-ID
<edd8579ebf2cf3bc91137b9fff1d090ea75bee56.1332968667.git.hvoigt@hvoigt.net>
In-Reply-To
<cover.1332968667.git.hvoigt@hvoigt.net>
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
---
 Documentation/technical/api-string-list.txt |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt
index ce24eb9..5a0c14f 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
-- 
1.7.10.rc2.31.gd8c60
Previous: Heiko VoigtNext: Heiko Voigt
Message 3 of 5 in “push: submodule support”
  1. 0/4 push: submodule supportHeiko Voigt, Mar 29, 2012
  2. 1/4 Teach revision walking machinery to walk multiple times sequenciallyHeiko Voigt, Mar 29, 2012
  3. 2/4 string-list: document that string_list_insert() inserts unique stringsHeiko Voigt, Mar 29, 2012
  4. 3/4 Refactor submodule push check to use string list instead of integerHeiko Voigt, Mar 29, 2012
  5. 4/4 push: teach --recurse-submodules the on-demand optionHeiko Voigt, Mar 29, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.