aboutsummaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-08 10:09:28 -0700
committerJunio C Hamano <gitster@pobox.com>2016-07-08 10:11:36 -0700
commit54307ea7c3ced760ee375483a786ec7180798aed (patch)
tree989d4ee64a7abae2833d07a3ab4eccc127eded92 /bisect.c
parentdabd35f4cdd8bcfa502d082da5a3e4b927a2b329 (diff)
downloadgit-54307ea7c3ced760ee375483a786ec7180798aed.tar.gz
git-54307ea7c3ced760ee375483a786ec7180798aed.tar.xz
commit.c: remove print_commit_list()
The helper function tries to offer a way to conveniently show the last one differently from others, presumably to allow you to say something like A, B, and C. while iterating over a list that has these three elements. However, there is only one caller, and it passes the same format string "%s\n" for both the last one and the other ones. Retire the helper function and update the caller with a simplified version. Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 dc13319c2..02f76f0f5 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");