summaryrefslogtreecommitdiffabout
path: root/cmd.c
Side-by-side diff
Diffstat (limited to 'cmd.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 07f4707..4edca6b 100644
--- a/cmd.c
+++ b/cmd.c
@@ -24,2 +24,10 @@
+static void about_fn(struct cgit_context *ctx)
+{
+ if (ctx->repo)
+ cgit_print_repo_readme();
+ else
+ cgit_print_site_readme();
+}
+
static void blob_fn(struct cgit_context *ctx)
@@ -96,2 +104,3 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx)
static struct cgit_cmd cmds[] = {
+ def_cmd(about, 0, 1),
def_cmd(blob, 1, 0),