@matheusbsbs / matheus-bagliano / commits / 6a17fad733
Fork 0

rev-list: make "show_bisect_vars" non static

and declare it in "bisect.h" as we will use this function later. While at it, rename its last argument "show_all" instead of "bisect_find_all". Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Mar 26, 2009 at 05:55 UTC 6a17fad73369173ca71d3adf0d4335a0c8137cb9
2 files changed +5 -2
bisect.h
+2
@@ -5,4 +5,6 @@ extern struct commit_list *find_bisection(struct commit_list *list,
5 int *reaches, int *all,
6 int find_all);
7
8 +extern int show_bisect_vars(int reaches, int all, int show_all);
9 +
10 #endif
builtin-rev-list.c
+3 -2
@@ -226,7 +226,7 @@ static int estimate_bisect_steps(int all)
226 return (e < 3 * x) ? n : n - 1;
227 }
228
229 -static int show_bisect_vars(int reaches, int all, int bisect_find_all)
229 +int show_bisect_vars(int reaches, int all, int show_all)
230 {
231 int cnt;
232 char hex[41];
@@ -246,9 +246,10 @@ static int show_bisect_vars(int reaches, int all, int bisect_find_all)
246 cnt = all - reaches;
247 if (cnt < reaches)
248 cnt = reaches;
249 +
250 strcpy(hex, sha1_to_hex(revs.commits->item->object.sha1));
251
251 - if (bisect_find_all) {
252 + if (show_all) {
253 traverse_commit_list(&revs, show_commit, show_object);
254 printf("------\n");
255 }