diff options
author | Freya Murphy <freya@freyacat.org> | 2025-09-04 23:42:18 +0000 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-09-04 23:42:18 +0000 |
commit | e6ad894ba53a185fc19f8563e26aff2ac93edd20 (patch) | |
tree | 6010b57dc2969285d0fcd88617dbaf7909d57fe6 /cmd.c | |
parent | repo urls should be case insensitive (diff) | |
download | cgit-e6ad894ba53a185fc19f8563e26aff2ac93edd20.tar.gz cgit-e6ad894ba53a185fc19f8563e26aff2ac93edd20.tar.bz2 cgit-e6ad894ba53a185fc19f8563e26aff2ac93edd20.zip |
Diffstat (limited to 'cmd.c')
-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; |