aboutsummaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-19 13:22:22 -0700
committerJunio C Hamano <gitster@pobox.com>2016-07-19 13:22:22 -0700
commit96e08010ee5b9d1dbfbcc8561fa69f972a415a38 (patch)
tree03768d6b32e30959c8c587fcd73ca3c1da8ae275 /bisect.c
parentf5236a776f31de2654bca9001aa74ef9fe0819d8 (diff)
parent54307ea7c3ced760ee375483a786ec7180798aed (diff)
downloadgit-96e08010ee5b9d1dbfbcc8561fa69f972a415a38.tar.gz
git-96e08010ee5b9d1dbfbcc8561fa69f972a415a38.tar.xz
Merge branch 'jk/printf-format'
Code clean-up to avoid using a variable string that compilers may feel untrustable as printf-style format given to write_file() helper function. * jk/printf-format: commit.c: remove print_commit_list() avoid using sha1_to_hex output as printf format walker: let walker_say take arbitrary formats
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bisect.c b/bisect.c
index 47cccdfb0..6f512c206 100644
--- a/bisect.c
+++ b/bisect.c
@@ -646,7 +646,10 @@ static void exit_if_skipped_commits(struct commit_list *tried,
printf("There are only 'skip'ped commits left to test.\n"
"The first %s commit could be any of:\n", term_bad);
- print_commit_list(tried, "%s\n", "%s\n");
+
+ for ( ; tried; tried = tried->next)
+ printf("%s\n", oid_to_hex(&tried->item->object.oid));
+
if (bad)
printf("%s\n", oid_to_hex(bad));
printf(_("We cannot bisect more!\n"));