X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/865afe0eb1b5e6485fe0f65472e6635266e393b1..3c53ebfb57a5dba8fc65b2f99ebbfb6356666e34:/ui-log.c diff --git a/ui-log.c b/ui-log.c index bcdb666..657ff3c 100644 --- a/ui-log.c +++ b/ui-log.c @@ -56,11 +56,11 @@ static void inspect_files(struct diff_filepair *pair) void show_commit_decorations(struct commit *commit) { - struct name_decoration *deco; + const struct name_decoration *deco; static char buf[1024]; buf[sizeof(buf) - 1] = 0; - deco = lookup_decoration(&name_decoration, &commit->object); + deco = get_name_decoration(&commit->object); html(""); while (deco) { if (starts_with(deco->name, "refs/heads/")) { @@ -90,7 +90,7 @@ void show_commit_decorations(struct commit *commit) strncpy(buf, deco->name, sizeof(buf) - 1); cgit_commit_link(buf, NULL, "deco", ctx.qry.head, sha1_to_hex(commit->object.sha1), - ctx.qry.vpath, 0); + ctx.qry.vpath); } next: deco = deco->next; @@ -165,7 +165,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) } } cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, - sha1_to_hex(commit->object.sha1), ctx.qry.vpath, 0); + sha1_to_hex(commit->object.sha1), ctx.qry.vpath); show_commit_decorations(commit); html(""); cgit_open_filter(ctx.repo->email_filter, info->author_email, "log");