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

[PATCH] Make main_cmds and other_cmds local to builtin-help.c

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 28, 2008, 17:17 UTC
Message-ID
<20080828171746.GC6024@blimp.local>
These are not used anywhere else.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 builtin-help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-help.c b/builtin-help.c
index 9225102..721038e 100644
--- a/builtin-help.c
+++ b/builtin-help.c
@@ -273,7 +273,7 @@ static int git_help_config(const char *var, const char *value, void *cb)
 	return git_default_config(var, value, cb);
 }
 
-struct cmdnames main_cmds, other_cmds;
+static struct cmdnames main_cmds, other_cmds;
 
 void list_common_cmds_help(void)
 {
-- 
1.6.0.1.150.g5966
Message 1 of 1 in “Make main_cmds and other_cmds local to builtin-help.c”
  1. Make main_cmds and other_cmds local to builtin-help.cAlex Riesen, Aug 28, 2008

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.