Skip to content

Commit 14ced55

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Reviewed-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f0a6068 commit 14ced55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bisect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ static void show_list(const char *debug, int counted, int nr,
143143
fprintf(stderr, "%3d", weight(p));
144144
else
145145
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));
147147
for (pp = commit->parents; pp; pp = pp->next)
148148
fprintf(stderr, " %.*s", 8,
149-
sha1_to_hex(pp->item->object.oid.hash));
149+
oid_to_hex(&pp->item->object.oid));
150150

151151
subject_len = find_commit_subject(buf, &subject_start);
152152
if (subject_len)

0 commit comments

Comments
 (0)