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

[PATCH] builtin/clean.c: Use STRING_LIST_INIT_NODUP.

From
Thiago Farina <tfransosi@gmail.com>
Date
Sep 6, 2010, 23:32 UTC
Message-ID
<1283815975-11107-1-git-send-email-tfransosi@gmail.com>
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
 builtin/clean.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin/clean.c b/builtin/clean.c
index b508d2c..c8798f5 100644
--- a/builtin/clean.c
+++ b/builtin/clean.c
@@ -44,7 +44,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
 	struct dir_struct dir;
 	static const char **pathspec;
 	struct strbuf buf = STRBUF_INIT;
-	struct string_list exclude_list = { NULL, 0, 0, 0 };
+	struct string_list exclude_list = STRING_LIST_INIT_NODUP;
 	const char *qname;
 	char *seen = NULL;
 	struct option options[] = {
-- 
1.7.2.3.313.gcd15
Next: Junio C Hamano
Message 1 of 3 in “builtin/clean.c: Use STRING_LIST_INIT_NODUP.”
  1. builtin/clean.c: Use STRING_LIST_INIT_NODUP.Thiago Farina, Sep 6, 2010
  2. Junio C HamanoSep 6, 2010
  3. Thiago FarinaSep 7, 2010

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.