]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-commit.c
Add support for repo.commit-filter and repo.source-filter
[cgit.git] / ui-commit.c
index 41ce70e2a9964839b5bf8f03ba6698b7d1ac69d1..5815b585509d4459bbd4a2b516ac1250a6d609a1 100644 (file)
@@ -89,11 +89,19 @@ void cgit_print_commit(char *hex)
        }
        html("</table>\n");
        html("<div class='commit-subject'>");
+       if (ctx.repo->commit_filter)
+               cgit_open_filter(ctx.repo->commit_filter);
        html_txt(info->subject);
+       if (ctx.repo->commit_filter)
+               cgit_close_filter(ctx.repo->commit_filter);
        show_commit_decorations(commit);
        html("</div>");
        html("<div class='commit-msg'>");
+       if (ctx.repo->commit_filter)
+               cgit_open_filter(ctx.repo->commit_filter);
        html_txt(info->msg);
+       if (ctx.repo->commit_filter)
+               cgit_close_filter(ctx.repo->commit_filter);
        html("</div>");
        if (parents < 3) {
                if (parents)