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 |
|
@@ -14,12 +14,13 @@ |
14 | #include "ui-blob.h" |
14 | #include "ui-blob.h" |
15 | #include "ui-clone.h" |
15 | #include "ui-clone.h" |
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" |
24 | #include "ui-tag.h" |
25 | #include "ui-tag.h" |
25 | #include "ui-tree.h" |
26 | #include "ui-tree.h" |
@@ -88,12 +89,17 @@ static void repolist_fn(struct cgit_context *ctx) |
88 | |
89 | |
89 | static void patch_fn(struct cgit_context *ctx) |
90 | 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 | } |
98 | |
104 | |
99 | static void snapshot_fn(struct cgit_context *ctx) |
105 | static void snapshot_fn(struct cgit_context *ctx) |
@@ -132,12 +138,13 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) |
132 | def_cmd(diff, 1, 1), |
138 | def_cmd(diff, 1, 1), |
133 | def_cmd(info, 1, 0), |
139 | def_cmd(info, 1, 0), |
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), |
142 | def_cmd(tag, 1, 1), |
149 | def_cmd(tag, 1, 1), |
143 | def_cmd(tree, 1, 1), |
150 | def_cmd(tree, 1, 1), |
|