@@ -137,7 +137,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
137137 switch (opt ) {
138138 case 't' :
139139 oi .type_name = & sb ;
140- if (oid_object_info_extended (the_repository , & oid , & oi , flags ) < 0 )
140+ if (odb_read_object_info_extended (the_repository -> objects , & oid , & oi , flags ) < 0 )
141141 die ("git cat-file: could not get object info" );
142142 if (sb .len ) {
143143 printf ("%s\n" , sb .buf );
@@ -155,7 +155,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
155155 oi .contentp = (void * * )& buf ;
156156 }
157157
158- if (oid_object_info_extended (the_repository , & oid , & oi , flags ) < 0 )
158+ if (odb_read_object_info_extended (the_repository -> objects , & oid , & oi , flags ) < 0 )
159159 die ("git cat-file: could not get object info" );
160160
161161 if (use_mailmap && (type == OBJ_COMMIT || type == OBJ_TAG )) {
@@ -189,7 +189,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
189189 /* else fallthrough */
190190
191191 case 'p' :
192- type = oid_object_info (the_repository , & oid , NULL );
192+ type = odb_read_object_info (the_repository -> objects , & oid , NULL );
193193 if (type < 0 )
194194 die ("Not a valid object name %s" , obj_name );
195195
@@ -226,7 +226,8 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
226226
227227 if (exp_type_id == OBJ_BLOB ) {
228228 struct object_id blob_oid ;
229- if (oid_object_info (the_repository , & oid , NULL ) == OBJ_TAG ) {
229+ if (odb_read_object_info (the_repository -> objects ,
230+ & oid , NULL ) == OBJ_TAG ) {
230231 char * buffer = repo_read_object_file (the_repository ,
231232 & oid ,
232233 & type ,
@@ -244,7 +245,8 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
244245 } else
245246 oidcpy (& blob_oid , & oid );
246247
247- if (oid_object_info (the_repository , & blob_oid , NULL ) == OBJ_BLOB ) {
248+ if (odb_read_object_info (the_repository -> objects ,
249+ & blob_oid , NULL ) == OBJ_BLOB ) {
248250 ret = stream_blob (& blob_oid );
249251 goto cleanup ;
250252 }
@@ -303,7 +305,7 @@ struct expand_data {
303305
304306 /*
305307 * After a mark_query run, this object_info is set up to be
306- * passed to oid_object_info_extended . It will point to the data
308+ * passed to odb_read_object_info_extended . It will point to the data
307309 * elements above, so you can retrieve the response from there.
308310 */
309311 struct object_info info ;
@@ -493,12 +495,12 @@ static void batch_object_write(const char *obj_name,
493495 data -> info .sizep = & data -> size ;
494496
495497 if (pack )
496- ret = packed_object_info (the_repository , pack , offset ,
497- & data -> info );
498+ ret = packed_object_info (the_repository , pack ,
499+ offset , & data -> info );
498500 else
499- ret = oid_object_info_extended (the_repository ,
500- & data -> oid , & data -> info ,
501- OBJECT_INFO_LOOKUP_REPLACE );
501+ ret = odb_read_object_info_extended (the_repository -> objects ,
502+ & data -> oid , & data -> info ,
503+ OBJECT_INFO_LOOKUP_REPLACE );
502504 if (ret < 0 ) {
503505 report_object_status (opt , obj_name , & data -> oid , "missing" );
504506 return ;
@@ -881,7 +883,7 @@ static int batch_objects(struct batch_options *opt)
881883
882884 /*
883885 * Expand once with our special mark_query flag, which will prime the
884- * object_info to be handed to oid_object_info_extended for each
886+ * object_info to be handed to odb_read_object_info_extended for each
885887 * object.
886888 */
887889 memset (& data , 0 , sizeof (data ));
0 commit comments