replace-object: allow do_lookup_replace_object to handle arbitrary repositories

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Stefan Beller
2018-04-11 17:21:17 -07:00
committed by Junio C Hamano
parent 5982da9d2c
commit 5643557e63
2 changed files with 6 additions and 5 deletions

View File

@ -14,8 +14,8 @@ struct replace_object {
* This internal function is only declared here for the benefit of
* lookup_replace_object(). Please do not call it directly.
*/
#define do_lookup_replace_object(r, s) do_lookup_replace_object_##r(s)
extern const struct object_id *do_lookup_replace_object_the_repository(const struct object_id *oid);
extern const struct object_id *do_lookup_replace_object(struct repository *r,
const struct object_id *oid);
/*
* If object sha1 should be replaced, return the replacement object's