aboutsummaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-03-26 05:55:35 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-30 01:22:54 -0700
commit6a17fad73369173ca71d3adf0d4335a0c8137cb9 (patch)
tree35484c4f79b38209def8022f465b18c11a4e992e /builtin-rev-list.c
parent9996983c9c35353f352ef7c1abd9b3d2fbb21114 (diff)
downloadgit-6a17fad73369173ca71d3adf0d4335a0c8137cb9.tar.gz
git-6a17fad73369173ca71d3adf0d4335a0c8137cb9.tar.xz
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>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 74d22b465..c700c34be 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -226,7 +226,7 @@ static int estimate_bisect_steps(int all)
return (e < 3 * x) ? n : n - 1;
}
-static int show_bisect_vars(int reaches, int all, int bisect_find_all)
+int show_bisect_vars(int reaches, int all, int show_all)
{
int cnt;
char hex[41];
@@ -246,9 +246,10 @@ static int show_bisect_vars(int reaches, int all, int bisect_find_all)
cnt = all - reaches;
if (cnt < reaches)
cnt = reaches;
+
strcpy(hex, sha1_to_hex(revs.commits->item->object.sha1));
- if (bisect_find_all) {
+ if (show_all) {
traverse_commit_list(&revs, show_commit, show_object);
printf("------\n");
}