summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;