rev-list: remove stringed output flag from "show_bisect_vars"
Because it was used only by "git bisect--helper --next-vars" but
the "--next-vars" option has been removed.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Christian Couder16 years agocommitted byJunio C Hamano
printf("%s='%s'%s\n", var, val, stringed ? " &&" : "");
printf("%s='%s'\n", var, val);
}
static void print_var_int(const char *var, int val, int stringed)
static void print_var_int(const char *var, int val)
{
printf("%s=%d%s\n", var, val, stringed ? " &&" : "");
printf("%s=%d\n", var, val);
}
int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
{
int cnt, stringed, flags = info->bisect_show_flags;
int cnt, flags = info->bisect_show_flags;
char hex[41] = "";
struct commit_list *tried;
struct rev_info *revs = info->revs;
@ -285,17 +285,15 @@ int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
@@ -285,17 +285,15 @@ int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
printf("------\n");
}
stringed = flags & BISECT_SHOW_STRINGED;
if (flags & BISECT_SHOW_TRIED)
show_tried_revs(tried, stringed);
print_var_str("bisect_rev", hex, stringed);
print_var_int("bisect_nr", cnt - 1, stringed);
print_var_int("bisect_good", all - reaches - 1, stringed);