diff options
Diffstat (limited to '')
-rw-r--r-- | cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |