bisect: use oid_to_hex() for converting object_id hashes to hex strings

Patch generated with Coccinelle and contrib/coccinelle/object_id.cocci. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Mar 25, 2018 at 12:57 UTC 14ced5562c59f308bf421ae00e6567ad11169692
1 file changed +2 -2
bisect.c
+2 -2
@@ -143,10 +143,10 @@ static void show_list(const char *debug, int counted, int nr,
143 fprintf(stderr, "%3d", weight(p));
144 else
145 fprintf(stderr, "---");
146 - fprintf(stderr, " %.*s", 8, sha1_to_hex(commit->object.oid.hash));
146 + fprintf(stderr, " %.*s", 8, oid_to_hex(&commit->object.oid));
147 for (pp = commit->parents; pp; pp = pp->next)
148 fprintf(stderr, " %.*s", 8,
149 - sha1_to_hex(pp->item->object.oid.hash));
149 + oid_to_hex(&pp->item->object.oid));
150
151 subject_len = find_commit_subject(buf, &subject_start);
152 if (subject_len)