summaryrefslogtreecommitdiff
path: root/builtin/rev-list.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-01-28 23:03:03 +0100
committerJunio C Hamano <gitster@pobox.com>2017-01-30 14:23:40 -0800
commit2490574d15cab6e8d955dc4132cf9e7e83fc1172 (patch)
tree6971968ee9acbd6f3ca9d490a1a8fcbaeeec611c /builtin/rev-list.c
parent4e59582ff70d299f5a88449891e78d15b4b3fabe (diff)
downloadgit-2490574d15cab6e8d955dc4132cf9e7e83fc1172.tar.gz
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>
Diffstat (limited to 'builtin/rev-list.c')
-rw-r--r--builtin/rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index c43decda70..0aa93d5891 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -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);