From: Brandon Williams Date: Tue, 30 May 2017 17:30:52 +0000 (-0700) Subject: diff: finish conversion for prepare_temp_file to struct object_id X-Git-Tag: v2.14.0-rc0~86^2~17 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/74014152be5d4280b1f8541cbae09b441d2c5328 diff: finish conversion for prepare_temp_file to struct object_id Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 084c8b2d0a..a8ceeb024c 100644 --- a/diff.c +++ b/diff.c @@ -3030,13 +3030,13 @@ static struct diff_tempfile *prepare_temp_file(const char *name, /* we can borrow from the file in the work tree */ temp->name = name; if (!one->oid_valid) - sha1_to_hex_r(temp->hex, null_sha1); + oid_to_hex_r(temp->hex, &null_oid); else 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 - * !(one->sha1_valid), as long as + * !(one->oid_valid), as long as * DIFF_FILE_VALID(one). */ xsnprintf(temp->mode, sizeof(temp->mode), "%06o", one->mode);