summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-10 11:52:51 -0800
committerJunio C Hamano <gitster@pobox.com>2022-01-10 11:52:51 -0800
commit01ea04f76e096c0c371e475c3a277e67b8f4b082 (patch)
tree0e4028c2e2964f92657221a981fbebc41fe49c67 /refs.c
parent3c0e4178277dee1cdc4607d7277a368379b12b3f (diff)
parentf9f7fd3b238cc56224c30235a0d248d027b7ecfa (diff)
downloadgit-01ea04f76e096c0c371e475c3a277e67b8f4b082.tar.gz
Merge branch 'hn/refs-debug-update'
Debugging support for refs API. * hn/refs-debug-update: refs: centralize initialization of the base ref_store. refs: print error message in debug output refs: pass gitdir to packed_ref_store_create
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/refs.c b/refs.c
index 4da4996c4d..bd2546ae23 100644
--- a/refs.c
+++ b/refs.c
@@ -2007,10 +2007,12 @@ struct ref_store *get_worktree_ref_store(const struct worktree *wt)
return refs;
}
-void base_ref_store_init(struct ref_store *refs,
- const struct ref_storage_be *be)
+void base_ref_store_init(struct ref_store *refs, struct repository *repo,
+ const char *path, const struct ref_storage_be *be)
{
refs->be = be;
+ refs->repo = repo;
+ refs->gitdir = xstrdup(path);
}
/* backend functions */