File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
const char * blob_type = "blob" ;
7
7
8
- struct blob * lookup_blob_the_repository ( const struct object_id * oid )
8
+ struct blob * lookup_blob ( struct repository * r , const struct object_id * oid )
9
9
{
10
- struct object * obj = lookup_object (the_repository , oid -> hash );
10
+ struct object * obj = lookup_object (r , oid -> hash );
11
11
if (!obj )
12
- return create_object (the_repository , oid -> hash ,
13
- alloc_blob_node (the_repository ));
14
- return object_as_type (the_repository , obj , OBJ_BLOB , 0 );
12
+ return create_object (r , oid -> hash ,
13
+ alloc_blob_node (r ));
14
+ return object_as_type (r , obj , OBJ_BLOB , 0 );
15
15
}
16
16
17
17
int parse_blob_buffer (struct blob * item , void * buffer , unsigned long size )
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ struct blob {
9
9
struct object object ;
10
10
};
11
11
12
- #define lookup_blob (r , o ) lookup_blob_##r(o)
13
- struct blob * lookup_blob_the_repository (const struct object_id * oid );
12
+ struct blob * lookup_blob (struct repository * r , const struct object_id * oid );
14
13
15
14
int parse_blob_buffer (struct blob * item , void * buffer , unsigned long size );
16
15
You can’t perform that action at this time.
0 commit comments