From e6ad894ba53a185fc19f8563e26aff2ac93edd20 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 4 Sep 2025 23:42:18 +0000 Subject: add wiki support to cgit --- cmd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 3342843..64a00f6 100644 --- a/cmd.c +++ b/cmd.c @@ -26,6 +26,7 @@ #include "ui-summary.h" #include "ui-tag.h" #include "ui-tree.h" +#include "ui-wiki.h" static void HEAD_fn(void) { @@ -164,6 +165,11 @@ static void tree_fn(void) cgit_print_tree(ctx.qry.oid, ctx.qry.path); } +static void wiki_fn(void) +{ + cgit_print_wiki(ctx.qry.oid); +} + #define def_cmd(name, want_repo, want_vpath, is_clone) \ {#name, name##_fn, want_repo, want_vpath, is_clone} @@ -191,6 +197,7 @@ struct cgit_cmd *cgit_get_cmd(void) def_cmd(summary, 1, 0, 0), def_cmd(tag, 1, 0, 0), def_cmd(tree, 1, 1, 0), + def_cmd(wiki, 1, 0, 0), }; int i; -- cgit v1.2.3-freya