sha1-file: fix outdated sha1 comment references

Commit 17e65451e3 (sha1_file: convert check_sha1_signature to struct object_id, 2018-03-12) switched to using the name "oid", but forgot to update the variable name in the comment. Likewise, b4f5aca40e (sha1_file: convert read_sha1_file to struct object_id, 2018-03-12) dropped the name read_sha1_file(), but missed a comment which mentions it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jan 7, 2019 at 03:33 UTC cb1c8d1d3c954e06535217dfc63c7b4b8ff58d72
1 file changed +3 -3
sha1-file.c
+3 -3
@@ -124,7 +124,7 @@ const char *empty_blob_oid_hex(void)
124
125 /*
126 * This is meant to hold a *small* number of objects that you would
127 - * want read_sha1_file() to be able to return, but yet you do not want
127 + * want read_object_file() to be able to return, but yet you do not want
128 * to write them into the object store (e.g. a browse-only
129 * application).
130 */
@@ -798,8 +798,8 @@ void *xmmap(void *start, size_t length,
798
799 /*
800 * With an in-core object data in "map", rehash it to make sure the
801 - * object name actually matches "sha1" to detect object corruption.
802 - * With "map" == NULL, try reading the object named with "sha1" using
801 + * object name actually matches "oid" to detect object corruption.
802 + * With "map" == NULL, try reading the object named with "oid" using
803 * the streaming interface and rehash it to do the same.
804 */
805 int check_object_signature(const struct object_id *oid, void *map,