File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ struct replace_object {
14
14
* This internal function is only declared here for the benefit of
15
15
* lookup_replace_object(). Please do not call it directly.
16
16
*/
17
- #define do_lookup_replace_object (r , s ) do_lookup_replace_object_##r(s)
18
- extern const struct object_id * do_lookup_replace_object_the_repository ( const struct object_id * oid );
17
+ extern const struct object_id * do_lookup_replace_object (struct repository * r ,
18
+ const struct object_id * oid );
19
19
20
20
/*
21
21
* If object sha1 should be replaced, return the replacement object's
Original file line number Diff line number Diff line change @@ -53,17 +53,18 @@ static void prepare_replace_object(struct repository *r)
53
53
* permanently-allocated value. This function always respects replace
54
54
* references, regardless of the value of check_replace_refs.
55
55
*/
56
- const struct object_id * do_lookup_replace_object_the_repository (const struct object_id * oid )
56
+ const struct object_id * do_lookup_replace_object (struct repository * r ,
57
+ const struct object_id * oid )
57
58
{
58
59
int depth = MAXREPLACEDEPTH ;
59
60
const struct object_id * cur = oid ;
60
61
61
- prepare_replace_object (the_repository );
62
+ prepare_replace_object (r );
62
63
63
64
/* Try to recursively replace the object */
64
65
while (depth -- > 0 ) {
65
66
struct replace_object * repl_obj =
66
- oidmap_get (the_repository -> objects -> replace_map , cur );
67
+ oidmap_get (r -> objects -> replace_map , cur );
67
68
if (!repl_obj )
68
69
return cur ;
69
70
cur = & repl_obj -> replacement ;
You can’t perform that action at this time.
0 commit comments