diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-01-26 08:54:46 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-01-26 08:54:46 -0800 |
| commit | dc8ce995a2ad203ffb5ef335682b64da955e645a (patch) | |
| tree | 5fb18d234cc42148bbd37754477fded0bff1cca4 /refs/debug.c | |
| parent | Merge branch 'ps/commit-graph-write-leakfix' (diff) | |
| parent | builtin/worktree: create refdb via ref backend (diff) | |
| download | git-dc8ce995a2ad203ffb5ef335682b64da955e645a.tar.gz git-dc8ce995a2ad203ffb5ef335682b64da955e645a.zip | |
Merge branch 'ps/worktree-refdb-initialization'
Instead of manually creating refs/ hierarchy on disk upon a
creation of a secondary worktree, which is only usable via the
files backend, use the refs API to populate it.
* ps/worktree-refdb-initialization:
builtin/worktree: create refdb via ref backend
worktree: expose interface to look up worktree by name
builtin/worktree: move setup of commondir file earlier
refs/files: skip creation of "refs/{heads,tags}" for worktrees
setup: move creation of "refs/" into the files backend
refs: prepare `refs_init_db()` for initializing worktree refs
Diffstat (limited to 'refs/debug.c')
| -rw-r--r-- | refs/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/debug.c b/refs/debug.c index b9775f2c37..634681ca44 100644 --- a/refs/debug.c +++ b/refs/debug.c @@ -33,10 +33,10 @@ struct ref_store *maybe_debug_wrap_ref_store(const char *gitdir, struct ref_stor return (struct ref_store *)res; } -static int debug_init_db(struct ref_store *refs, struct strbuf *err) +static int debug_init_db(struct ref_store *refs, int flags, struct strbuf *err) { struct debug_ref_store *drefs = (struct debug_ref_store *)refs; - int res = drefs->refs->be->init_db(drefs->refs, err); + int res = drefs->refs->be->init_db(drefs->refs, flags, err); trace_printf_key(&trace_refs, "init_db: %d\n", res); return res; } |
