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>
maint
Christian Couder16 years agocommitted byJunio C Hamano
static void print_var_str(const char *var, const char *val, int stringed)
{
printf("%s='%s'%s\n", var, val, stringed ? " &&" : "");
}
static void print_var_int(const char *var, int val, int stringed)
{
printf("%s=%d%s\n", var, val, stringed ? " &&" : "");
}
int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
{
int cnt, flags = info->bisect_show_flags;
char hex[41] = "", *format;
int cnt, stringed, flags = info->bisect_show_flags;
char hex[41] = "";
struct commit_list *tried;
struct rev_info *revs = info->revs;
@ -268,29 +285,17 @@ int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
@@ -268,29 +285,17 @@ int show_bisect_vars(struct rev_list_info *info, int reaches, int all)