Unidiff1 files changed, 9 insertions, 0 deletions
|
diff --git a/cmd.c b/cmd.c index e0eacbe..6cc91e6 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -21,4 +21,12 @@ |
21 | #include "ui-tree.h" |
21 | #include "ui-tree.h" |
22 | |
22 | |
| |
23 | static void about_fn(struct cgit_context *ctx) |
| |
24 | { |
| |
25 | if (ctx->repo) |
| |
26 | cgit_print_repo_readme(); |
| |
27 | else |
| |
28 | cgit_print_site_readme(); |
| |
29 | } |
| |
30 | |
23 | static void blob_fn(struct cgit_context *ctx) |
31 | static void blob_fn(struct cgit_context *ctx) |
24 | { |
32 | { |
@@ -85,4 +93,5 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) |
85 | { |
93 | { |
86 | static struct cgit_cmd cmds[] = { |
94 | static struct cgit_cmd cmds[] = { |
| |
95 | def_cmd(about, 0, 1), |
87 | def_cmd(blob, 1, 0), |
96 | def_cmd(blob, 1, 0), |
88 | def_cmd(commit, 1, 1), |
97 | def_cmd(commit, 1, 1), |
|