Skip to content

Commit aa1c2b6

Browse files
committed
Merge branch 'ys/bisect-object-id-missing-conversion-fix'
Code clean-up. * ys/bisect-object-id-missing-conversion-fix: bisect: use oid_to_hex() for converting object_id hashes to hex strings
2 parents 9aa3a4c + 14ced55 commit aa1c2b6

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
@@ -145,10 +145,10 @@ static void show_list(const char *debug, int counted, int nr,
145145
fprintf(stderr, "%3d", weight(p));
146146
else
147147
fprintf(stderr, "---");
148-
fprintf(stderr, " %.*s", 8, sha1_to_hex(commit->object.oid.hash));
148+
fprintf(stderr, " %.*s", 8, oid_to_hex(&commit->object.oid));
149149
for (pp = commit->parents; pp; pp = pp->next)
150150
fprintf(stderr, " %.*s", 8,
151-
sha1_to_hex(pp->item->object.oid.hash));
151+
oid_to_hex(&pp->item->object.oid));
152152

153153
subject_len = find_commit_subject(buf, &subject_start);
154154
if (subject_len)

0 commit comments

Comments
 (0)