diff options
| author | saturneric <[email protected]> | 2025-11-02 15:21:58 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-02 15:21:58 +0000 |
| commit | 960134bef2cd769981cad8df0bd63cb0461e6bbe (patch) | |
| tree | 6118799a8eb7ceb1efcff4e2c0be3dd21b2f4e4f /ui-shared.c | |
| parent | chore(submodule): update `git` submodule URL and commit (diff) | |
| download | cgit-960134bef2cd769981cad8df0bd63cb0461e6bbe.tar.gz cgit-960134bef2cd769981cad8df0bd63cb0461e6bbe.zip | |
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.
Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
