rev-list: make "bisect_list" variable local to "cmd_rev_list"
authorChristian Couder <chriscool@tuxfamily.org>
Thu, 26 Mar 2009 04:55:17 +0000 (05:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2009 08:22:54 +0000 (01:22 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-list.c

index 40d5fcb6b0b26c76c271624408b531cc01e15f7b..28fe2dc30be1a5e565a62b51540b1906f137a137 100644 (file)
@@ -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;