summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-04 23:42:18 +0000
committerFreya Murphy <freya@freyacat.org>2025-09-04 23:42:18 +0000
commite6ad894ba53a185fc19f8563e26aff2ac93edd20 (patch)
tree6010b57dc2969285d0fcd88617dbaf7909d57fe6 /cmd.c
parentrepo urls should be case insensitive (diff)
downloadcgit-e6ad894ba53a185fc19f8563e26aff2ac93edd20.tar.gz
cgit-e6ad894ba53a185fc19f8563e26aff2ac93edd20.tar.bz2
cgit-e6ad894ba53a185fc19f8563e26aff2ac93edd20.zip
add wiki support to cgitHEADmaster
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c7
1 files changed, 7 insertions, 0 deletions
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;