rev-list: remove BISECT_SHOW_TRIED flag
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>
Nguyễn Thái Ngọc Duy committed
Feb 28, 2012 at 20:59 UTC
8ba8fe049feb9207dd3543c339da955336e5df8f
2 files changed
+1
-12
bisect.h
-1
@@ -17,7 +17,6 @@ extern void print_commit_list(struct commit_list *list,
17
18
/* bisect_show_flags flags in struct rev_list_info */
19
#define BISECT_SHOW_ALL (1<<0)
20
-#define BISECT_SHOW_TRIED (1<<1)
20
21
struct rev_list_info {
22
struct rev_info *revs;
builtin/rev-list.c
+1
-11
@@ -242,13 +242,6 @@ void print_commit_list(struct commit_list *list,
242
}
243
}
244
245
-static void show_tried_revs(struct commit_list *tried)
246
-{
247
- printf("bisect_tried='");
248
- print_commit_list(tried, "%s|", "%s");
249
- printf("'\n");
250
-}
251
-
245
static void print_var_str(const char *var, const char *val)
246
{
247
printf("%s='%s'\n", var, val);
@@ -266,7 +259,7 @@ static int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
259
struct commit_list *tried;
260
struct rev_info *revs = info->revs;
261
269
- if (!revs->commits && !(flags & BISECT_SHOW_TRIED))
262
+ if (!revs->commits)
263
return 1;
264
265
revs->commits = filter_skipped(revs->commits, &tried,
@@ -294,9 +287,6 @@ static int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
287
printf("------\n");
288
}
289
297
- if (flags & BISECT_SHOW_TRIED)
298
- show_tried_revs(tried);
299
-
290
print_var_str("bisect_rev", hex);
291
print_var_int("bisect_nr", cnt - 1);
292
print_var_int("bisect_good", all - reaches - 1);