Unidiff1 files changed, 7 insertions, 0 deletions
|
diff --git a/cmd.c b/cmd.c index 40ac53e..a989220 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -16,8 +16,9 @@ |
16 | #include "ui-commit.h" |
16 | #include "ui-commit.h" |
17 | #include "ui-diff.h" |
17 | #include "ui-diff.h" |
18 | #include "ui-log.h" |
18 | #include "ui-log.h" |
19 | #include "ui-patch.h" |
19 | #include "ui-patch.h" |
| |
20 | #include "ui-plain.h" |
20 | #include "ui-refs.h" |
21 | #include "ui-refs.h" |
21 | #include "ui-repolist.h" |
22 | #include "ui-repolist.h" |
22 | #include "ui-snapshot.h" |
23 | #include "ui-snapshot.h" |
23 | #include "ui-summary.h" |
24 | #include "ui-summary.h" |
@@ -90,8 +91,13 @@ static void patch_fn(struct cgit_context *ctx) |
90 | { |
91 | { |
91 | cgit_print_patch(ctx->qry.sha1); |
92 | cgit_print_patch(ctx->qry.sha1); |
92 | } |
93 | } |
93 | |
94 | |
| |
95 | static void plain_fn(struct cgit_context *ctx) |
| |
96 | { |
| |
97 | cgit_print_plain(ctx); |
| |
98 | } |
| |
99 | |
94 | static void refs_fn(struct cgit_context *ctx) |
100 | static void refs_fn(struct cgit_context *ctx) |
95 | { |
101 | { |
96 | cgit_print_refs(); |
102 | cgit_print_refs(); |
97 | } |
103 | } |
@@ -134,8 +140,9 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) |
134 | def_cmd(log, 1, 1), |
140 | def_cmd(log, 1, 1), |
135 | def_cmd(ls_cache, 0, 0), |
141 | def_cmd(ls_cache, 0, 0), |
136 | def_cmd(objects, 1, 0), |
142 | def_cmd(objects, 1, 0), |
137 | def_cmd(patch, 1, 0), |
143 | def_cmd(patch, 1, 0), |
| |
144 | def_cmd(plain, 1, 0), |
138 | def_cmd(refs, 1, 1), |
145 | def_cmd(refs, 1, 1), |
139 | def_cmd(repolist, 0, 0), |
146 | def_cmd(repolist, 0, 0), |
140 | def_cmd(snapshot, 1, 0), |
147 | def_cmd(snapshot, 1, 0), |
141 | def_cmd(summary, 1, 1), |
148 | def_cmd(summary, 1, 1), |
|