From 960134bef2cd769981cad8df0bd63cb0461e6bbe Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 2 Nov 2025 15:21:58 +0000 Subject: refactor(repo): migrate to new object database API * Replace legacy object store interfaces with new `odb` API * Update function signatures to include referent param for callbacks * Use improved object lookup and read methods for consistency * Simplify file path handling with repository-scoped utilities Modernizes repository object access for better maintainability and future compatibility. No functional regressions expected. --- ui-shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 6fae72d..7c5a19c 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -936,8 +936,8 @@ void cgit_add_clone_urls(void (*fn)(const char *)) add_clone_urls(fn, ctx.cfg.clone_prefix, ctx.repo->url); } -static int print_branch_option(const char *refname, const struct object_id *oid, - int flags, void *cb_data) +static int print_branch_option(const char *refname, const char *referent, + const struct object_id *oid, int flags, void *cb_data) { char *name = (char *)refname; html_option(name, name, ctx.qry.head); -- cgit