OSDN Git Service

rev-list: make "estimate_bisect_steps" non static
authorChristian Couder <chriscool@tuxfamily.org>
Sun, 19 Apr 2009 09:55:38 +0000 (11:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 May 2009 07:30:28 +0000 (00:30 -0700)
Because it will be used from "bisect.c" too.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.h
builtin-rev-list.c

index fdba913..cb37ddf 100644 (file)
--- a/bisect.h
+++ b/bisect.h
@@ -26,4 +26,6 @@ extern int show_bisect_vars(struct rev_list_info *info, int reaches, int all);
 
 extern int bisect_next_vars(const char *prefix);
 
+extern int estimate_bisect_steps(int all);
+
 #endif
index 38a8f23..4c5f5ee 100644 (file)
@@ -211,7 +211,7 @@ static inline int exp2i(int n)
  *
  * and P(2^n + x) < 0.5 means 2^n < 3x
  */
-static int estimate_bisect_steps(int all)
+int estimate_bisect_steps(int all)
 {
        int n, x, e;