@@ -3254,7 +3254,7 @@ static int read_blob_object(struct strbuf *buf, const struct object_id *oid, uns
result = read_object_file(oid, &type, &sz);
if (!result)
return -1;
- /* XXX read_sha1_file NUL-terminates */
+ /* XXX read_object_file NUL-terminates */
strbuf_attach(buf, result, sz, sz + 1);
}
return 0;
@@ -285,7 +285,7 @@ static uint64_t estimate_repack_memory(struct packed_git *pack)
/* revindex is used also */
heap += sizeof(struct revindex_entry) * nr_objects;
/*
- * read_sha1_file() (either at delta calculation phase, or
+ * read_object_file() (either at delta calculation phase, or
* writing phase) also fills up the delta base cache
*/
heap += delta_base_cache_limit;
@@ -1298,13 +1298,13 @@ static void stream_blob(uintmax_t len, struct object_id *oidout, uintmax_t mark)
* oe must not be NULL. Such an oe usually comes from giving
* an unknown SHA-1 to find_object() or an undefined mark to
* find_mark(). Callers must test for this condition and use
- * the standard read_sha1_file() when it happens.
+ * the standard read_object_file() when it happens.
*
* oe->pack_id must not be MAX_PACK_ID. Such an oe is usually from
* find_mark(), where the mark was reloaded from an existing marks
* file and is referencing an object that this fast-import process
* instance did not write out to a packfile. Callers must test for
- * this condition and use read_sha1_file() instead.
+ * this condition and use read_object_file() instead.
*/
static void *gfi_unpack_entry(
struct object_entry *oe,
@@ -858,7 +858,7 @@ static int string_list_add_note_lines(struct string_list *list,
if (is_null_oid(oid))
return 0;
- /* read_sha1_file NUL-terminates */
+ /* read_object_file NUL-terminates */
data = read_object_file(oid, &t, &len);
if (t != OBJ_BLOB || !data || !len) {
free(data);
@@ -136,7 +136,7 @@ struct object *parse_object(struct repository *r, const struct object_id *oid);
*/
struct object *parse_object_or_die(const struct object_id *oid, const char *name);
-/* Given the result of read_sha1_file(), returns the object after
+/* Given the result of read_object_file(), returns the object after
* parsing it. eaten_p indicates if the object has a borrowed copy
* of buffer and the caller should not free() it.
*/
@@ -124,7 +124,7 @@ const char *empty_blob_oid_hex(void)
/*
* This is meant to hold a *small* number of objects that you would
- * want read_sha1_file() to be able to return, but yet you do not want
+ * want read_object_file() to be able to return, but yet you do not want
* to write them into the object store (e.g. a browse-only
* application).
*/
Remnant of the old name of the function still remains in comments. Update them all. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- apply.c | 2 +- builtin/gc.c | 2 +- fast-import.c | 4 ++-- notes.c | 2 +- object.h | 2 +- sha1-file.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)