aboutsummaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-04-07 05:08:42 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-07 22:12:44 -0700
commit13858e5770dd218e5318819d3273c916b46cf8e5 (patch)
treed7f907bdc8f9b14e2e8da7080d58b58badd041e2 /bisect.c
parentd797257eb280b67dd1f7153a66b03453c0fb927a (diff)
downloadgit-13858e5770dd218e5318819d3273c916b46cf8e5.tar.gz
git-13858e5770dd218e5318819d3273c916b46cf8e5.tar.xz
rev-list: add "int bisect_show_flags" in "struct rev_list_info"
This is a cleanup patch to make it easier to use the "show_bisect_vars" function and take advantage of the rev_list_info struct. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bisect.c b/bisect.c
index 4d2a150df..58f7e6f77 100644
--- a/bisect.c
+++ b/bisect.c
@@ -540,6 +540,7 @@ int bisect_next_vars(const char *prefix)
memset(&info, 0, sizeof(info));
info.revs = &revs;
+ info.bisect_show_flags = BISECT_SHOW_TRIED | BISECT_SHOW_STRINGED;
bisect_rev_setup(&revs, prefix);
@@ -551,6 +552,5 @@ int bisect_next_vars(const char *prefix)
revs.commits = find_bisection(revs.commits, &reaches, &all,
!!skipped_sha1_nr);
- return show_bisect_vars(&info, reaches, all,
- BISECT_SHOW_TRIED | BISECT_SHOW_STRINGED);
+ return show_bisect_vars(&info, reaches, all);
}