summaryrefslogtreecommitdiff
path: root/bisect.h
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-04-19 09:55:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-10 07:30:28 (GMT)
commit280e65cbd83a867437cef3543d445013ecbfe29a (patch)
tree770b0f16b3545239d1924246ab08bf362ac275d7 /bisect.h
parent1c876546bda5dde35d4ae887ad6d24ed16ec953a (diff)
downloadgit-280e65cbd83a867437cef3543d445013ecbfe29a.zip
git-280e65cbd83a867437cef3543d445013ecbfe29a.tar.gz
git-280e65cbd83a867437cef3543d445013ecbfe29a.tar.bz2
rev-list: refactor printing bisect vars
This simplifies the code, and while at it we create the "print_commit_list" function that will be reused later. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.h')
-rw-r--r--bisect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bisect.h b/bisect.h
index cb37ddf..89aa6cb 100644
--- a/bisect.h
+++ b/bisect.h
@@ -9,6 +9,10 @@ extern struct commit_list *filter_skipped(struct commit_list *list,
struct commit_list **tried,
int show_all);
+extern void print_commit_list(struct commit_list *list,
+ const char *format_cur,
+ const char *format_last);
+
/* bisect_show_flags flags in struct rev_list_info */
#define BISECT_SHOW_ALL (1<<0)
#define BISECT_SHOW_TRIED (1<<1)