summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb8da70)
raw | patch | inline | side by side (parent: cb8da70)
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Tue, 28 Feb 2012 13:59:59 +0000 (20:59 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 28 Feb 2012 18:47:28 +0000 (10:47 -0800) |
Since c99f069 (bisect--helper: remove "--next-vars" option as it is
now useless - 2009-04-21), this flag has always been off. Remove the
flag and all related code.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
now useless - 2009-04-21), this flag has always been off. Remove the
flag and all related code.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
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 22f2e4db2d1d05184dc2eeec2ff87021a67e01f2..b06949e9dbe73531027548215e7863b43ad57c62 100644 (file)
--- a/bisect.h
+++ b/bisect.h
/* bisect_show_flags flags in struct rev_list_info */
#define BISECT_SHOW_ALL (1<<0)
-#define BISECT_SHOW_TRIED (1<<1)
struct rev_list_info {
struct rev_info *revs;
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 264e3ae9d840c342499634e21b21c274ebcebacf..7a3f8205e2899b25812df654936435334f8ab791 100644 (file)
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
}
}
-static void show_tried_revs(struct commit_list *tried)
-{
- printf("bisect_tried='");
- print_commit_list(tried, "%s|", "%s");
- printf("'\n");
-}
-
static void print_var_str(const char *var, const char *val)
{
printf("%s='%s'\n", var, val);
struct commit_list *tried;
struct rev_info *revs = info->revs;
- if (!revs->commits && !(flags & BISECT_SHOW_TRIED))
+ if (!revs->commits)
return 1;
revs->commits = filter_skipped(revs->commits, &tried,
printf("------\n");
}
- if (flags & BISECT_SHOW_TRIED)
- show_tried_revs(tried);
-
print_var_str("bisect_rev", hex);
print_var_int("bisect_nr", cnt - 1);
print_var_int("bisect_good", all - reaches - 1);