]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
git: update to v2.41.0
[ps-cgit] / ui-log.c
index 311304ab80abd60fd957d5bf89a5d1a3d5e008d3..50d479d87343dc81ecb7d02a22696b19037380db 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -146,7 +146,7 @@ static int show_commit(struct commit *commit, struct rev_info *revs)
        /* When we get here we have precisely one parent. */
        parent = parents->item;
        /* If we can't parse the commit, let print_commit() report an error. */
-       if (parse_commit(parent))
+       if (repo_parse_commit(the_repository, parent))
                return 1;
 
        files = 0;
@@ -330,7 +330,7 @@ static const char *disambiguate_ref(const char *ref, int *must_free_result)
        struct strbuf longref = STRBUF_INIT;
 
        strbuf_addf(&longref, "refs/heads/%s", ref);
-       if (get_oid(longref.buf, &oid) == 0) {
+       if (repo_get_oid(the_repository, longref.buf, &oid) == 0) {
                *must_free_result = 1;
                return strbuf_detach(&longref, NULL);
        }
@@ -430,7 +430,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
        if (path)
                strvec_push(&rev_argv, path);
 
-       init_revisions(&rev, NULL);
+       repo_init_revisions(the_repository, &rev, NULL);
        rev.abbrev = DEFAULT_ABBREV;
        rev.commit_format = CMIT_FMT_DEFAULT;
        rev.verbose_header = 1;