use oid_to_hex_r() for converting struct object_id hashes to hex strings
Patch generated by Coccinelle and contrib/coccinelle/object_id.cocci. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
4e59582ff7
commit
2490574d15
@ -237,7 +237,7 @@ static int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
|
||||
cnt = reaches;
|
||||
|
||||
if (revs->commits)
|
||||
sha1_to_hex_r(hex, revs->commits->item->object.oid.hash);
|
||||
oid_to_hex_r(hex, &revs->commits->item->object.oid);
|
||||
|
||||
if (flags & BISECT_SHOW_ALL) {
|
||||
traverse_commit_list(revs, show_commit, show_object, info);
|
||||
|
Reference in New Issue
Block a user