summaryrefslogtreecommitdiffabout
path: root/cmd.c
Side-by-side diff
Diffstat (limited to 'cmd.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 40ac53e..a989220 100644
--- a/cmd.c
+++ b/cmd.c
@@ -19,2 +19,3 @@
#include "ui-patch.h"
+#include "ui-plain.h"
#include "ui-refs.h"
@@ -93,2 +94,7 @@ static void patch_fn(struct cgit_context *ctx)
+static void plain_fn(struct cgit_context *ctx)
+{
+ cgit_print_plain(ctx);
+}
+
static void refs_fn(struct cgit_context *ctx)
@@ -137,2 +143,3 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx)
def_cmd(patch, 1, 0),
+ def_cmd(plain, 1, 0),
def_cmd(refs, 1, 1),