Merge branch 'jt/no-abuse-alternate-odb-for-submodules'
Follow through the work to use the repo interface to access submodule objects in-process, instead of abusing the alternate object database interface. * jt/no-abuse-alternate-odb-for-submodules: submodule: trace adding submodule ODB as alternate submodule: pass repo to check_has_commit() object-file: only register submodule ODB if needed merge-{ort,recursive}: remove add_submodule_odb() refs: peeling non-the_repository iterators is BUG refs: teach arbitrary repo support to iterators refs: plumb repo into ref stores
This commit is contained in:
@ -66,6 +66,7 @@ int refname_is_safe(const char *refname);
|
||||
* referred-to object does not exist, emit a warning and return false.
|
||||
*/
|
||||
int ref_resolves_to_object(const char *refname,
|
||||
struct repository *repo,
|
||||
const struct object_id *oid,
|
||||
unsigned int flags);
|
||||
|
||||
@ -539,7 +540,8 @@ struct ref_store;
|
||||
* should call base_ref_store_init() to initialize the shared part of
|
||||
* the ref_store and to record the ref_store for later lookup.
|
||||
*/
|
||||
typedef struct ref_store *ref_store_init_fn(const char *gitdir,
|
||||
typedef struct ref_store *ref_store_init_fn(struct repository *repo,
|
||||
const char *gitdir,
|
||||
unsigned int flags);
|
||||
|
||||
typedef int ref_init_db_fn(struct ref_store *refs, struct strbuf *err);
|
||||
@ -701,7 +703,12 @@ struct ref_store {
|
||||
/* The backend describing this ref_store's storage scheme: */
|
||||
const struct ref_storage_be *be;
|
||||
|
||||
/* The gitdir that this ref_store applies to: */
|
||||
struct repository *repo;
|
||||
|
||||
/*
|
||||
* The gitdir that this ref_store applies to. Note that this is not
|
||||
* necessarily repo->gitdir if the repo has multiple worktrees.
|
||||
*/
|
||||
char *gitdir;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user