diff options
author | René Scharfe <l.s.r@web.de> | 2017-01-28 23:03:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-30 14:23:40 -0800 |
commit | 2490574d15cab6e8d955dc4132cf9e7e83fc1172 (patch) | |
tree | 6971968ee9acbd6f3ca9d490a1a8fcbaeeec611c /diff.c | |
parent | 4e59582ff70d299f5a88449891e78d15b4b3fabe (diff) | |
download | git-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 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3015,7 +3015,7 @@ static struct diff_tempfile *prepare_temp_file(const char *name, if (!one->oid_valid) sha1_to_hex_r(temp->hex, null_sha1); else - sha1_to_hex_r(temp->hex, one->oid.hash); + oid_to_hex_r(temp->hex, &one->oid); /* Even though we may sometimes borrow the * contents from the work tree, we always want * one->mode. mode is trustworthy even when |