aboutsummaryrefslogtreecommitdiffstats
path: root/parsing.c
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-02 15:21:58 +0000
committersaturneric <[email protected]>2025-11-02 15:21:58 +0000
commit960134bef2cd769981cad8df0bd63cb0461e6bbe (patch)
tree6118799a8eb7ceb1efcff4e2c0be3dd21b2f4e4f /parsing.c
parentchore(submodule): update `git` submodule URL and commit (diff)
downloadcgit-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 'parsing.c')
-rw-r--r--parsing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsing.c b/parsing.c
index 5616d43..115ce81 100644
--- a/parsing.c
+++ b/parsing.c
@@ -200,7 +200,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
const char *p;
struct taginfo *ret = NULL;
- data = repo_read_object_file(the_repository, &tag->object.oid, &type, &size);
+ data = odb_read_object(the_repository->objects, &tag->object.oid, &type, &size);
if (!data || type != OBJ_TAG)
goto cleanup;