@@ -1149,10 +1149,9 @@ int parse_sha1_header(const char *hdr, unsigned long *sizep)
1149
1149
return parse_sha1_header_extended (hdr , & oi , 0 );
1150
1150
}
1151
1151
1152
- #define sha1_loose_object_info (r , s , o , f ) sha1_loose_object_info_##r(s, o, f)
1153
- static int sha1_loose_object_info_the_repository (const unsigned char * sha1 ,
1154
- struct object_info * oi ,
1155
- int flags )
1152
+ static int sha1_loose_object_info (struct repository * r ,
1153
+ const unsigned char * sha1 ,
1154
+ struct object_info * oi , int flags )
1156
1155
{
1157
1156
int status = 0 ;
1158
1157
unsigned long mapsize ;
@@ -1176,14 +1175,14 @@ static int sha1_loose_object_info_the_repository(const unsigned char *sha1,
1176
1175
if (!oi -> typep && !oi -> typename && !oi -> sizep && !oi -> contentp ) {
1177
1176
const char * path ;
1178
1177
struct stat st ;
1179
- if (stat_sha1_file (the_repository , sha1 , & st , & path ) < 0 )
1178
+ if (stat_sha1_file (r , sha1 , & st , & path ) < 0 )
1180
1179
return -1 ;
1181
1180
if (oi -> disk_sizep )
1182
1181
* oi -> disk_sizep = st .st_size ;
1183
1182
return 0 ;
1184
1183
}
1185
1184
1186
- map = map_sha1_file (the_repository , sha1 , & mapsize );
1185
+ map = map_sha1_file (r , sha1 , & mapsize );
1187
1186
if (!map )
1188
1187
return -1 ;
1189
1188
0 commit comments