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

[PATCH 02/10] rev-list: make "bisect_list" variable local to "cmd_rev_list"

From
Christian Couder <chriscool@tuxfamily.org>
Date
Mar 26, 2009, 04:55 UTC
Message-ID
<20090326055517.20f5097d.chriscool@tuxfamily.org>

The "bisect_list" variable was static for no reason as it is only used in the "cmd_rev_list" function.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 builtin-rev-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 40d5fcb..28fe2dc 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -52,7 +52,6 @@ static const char rev_list_usage[] =
 
 static struct rev_info revs;
 
-static int bisect_list;
 static int show_timestamp;
 static int hdr_termination;
 static const char *header_prefix;
@@ -618,6 +617,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
 	struct commit_list *list;
 	int i;
 	int read_from_stdin = 0;
+	int bisect_list = 0;
 	int bisect_show_vars = 0;
 	int bisect_find_all = 0;
 	int quiet = 0;
-- 
1.6.2.1.317.g3d804
Message 1 of 1 in “rev-list: make "bisect_list" variable local to "cmd_rev_list"”
  1. 02/10 rev-list: make "bisect_list" variable local to "cmd_rev_list"Christian Couder, Mar 26, 2009

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.