From 7be13f5f743978180ba377e12a312b773ed9af2b Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 7 Jan 2023 08:50:19 -0500 Subject: read_object_file_extended(): drop lookup_replace option Our sole caller always passes in "1", so we can just drop the parameter entirely. Anybody who doesn't want this behavior could easily call oid_object_info_extended() themselves, as we're just a thin wrapper around it. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- object-store.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object-store.h') diff --git a/object-store.h b/object-store.h index f0aa03bbb9..6ccacc947b 100644 --- a/object-store.h +++ b/object-store.h @@ -244,13 +244,13 @@ void *map_loose_object(struct repository *r, const struct object_id *oid, void *read_object_file_extended(struct repository *r, const struct object_id *oid, enum object_type *type, - unsigned long *size, int lookup_replace); + unsigned long *size); static inline void *repo_read_object_file(struct repository *r, const struct object_id *oid, enum object_type *type, unsigned long *size) { - return read_object_file_extended(r, oid, type, size, 1); + return read_object_file_extended(r, oid, type, size); } #ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS #define read_object_file(oid, type, size) repo_read_object_file(the_repository, oid, type, size) -- cgit v1.2.3