summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9996983)
raw | patch | inline | side by side (parent: 9996983)
author | Christian Couder <chriscool@tuxfamily.org> | |
Thu, 26 Mar 2009 04:55:35 +0000 (05:55 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 30 Mar 2009 08:22:54 +0000 (01:22 -0700) |
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>
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>
bisect.h | patch | blob | history | |
builtin-rev-list.c | patch | blob | history |
diff --git a/bisect.h b/bisect.h
index 60b2fe1cdc9896b9a3baf31cf35c9ab7a1f77568..860a15c9b8de4b82ff5979d7d4afbba922c60732 100644 (file)
--- a/bisect.h
+++ b/bisect.h
int *reaches, int *all,
int find_all);
+extern int show_bisect_vars(int reaches, int all, int show_all);
+
#endif
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 74d22b4658fcfd63c09511ee34613c16e040a68d..c700c34be58e1368f19d00fe811f864517d6acf1 100644 (file)
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
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];
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");
}