Unidiff1 files changed, 7 insertions, 0 deletions
|
diff --git a/cmd.c b/cmd.c index 03e165c..40ac53e 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -10,6 +10,7 @@ |
10 | #include "cmd.h" |
10 | #include "cmd.h" |
11 | #include "cache.h" |
11 | #include "cache.h" |
12 | #include "ui-shared.h" |
12 | #include "ui-shared.h" |
| |
13 | #include "ui-atom.h" |
13 | #include "ui-blob.h" |
14 | #include "ui-blob.h" |
14 | #include "ui-clone.h" |
15 | #include "ui-clone.h" |
15 | #include "ui-commit.h" |
16 | #include "ui-commit.h" |
@@ -28,6 +29,11 @@ static void HEAD_fn(struct cgit_context *ctx) |
28 | cgit_clone_head(ctx); |
29 | cgit_clone_head(ctx); |
29 | } |
30 | } |
30 | |
31 | |
| |
32 | static void atom_fn(struct cgit_context *ctx) |
| |
33 | { |
| |
34 | cgit_print_atom(ctx->qry.head, ctx->qry.path, 10); |
| |
35 | } |
| |
36 | |
31 | static void about_fn(struct cgit_context *ctx) |
37 | static void about_fn(struct cgit_context *ctx) |
32 | { |
38 | { |
33 | if (ctx->repo) |
39 | if (ctx->repo) |
@@ -119,6 +125,7 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) |
119 | { |
125 | { |
120 | static struct cgit_cmd cmds[] = { |
126 | static struct cgit_cmd cmds[] = { |
121 | def_cmd(HEAD, 1, 0), |
127 | def_cmd(HEAD, 1, 0), |
| |
128 | def_cmd(atom, 1, 0), |
122 | def_cmd(about, 0, 1), |
129 | def_cmd(about, 0, 1), |
123 | def_cmd(blob, 1, 0), |
130 | def_cmd(blob, 1, 0), |
124 | def_cmd(commit, 1, 1), |
131 | def_cmd(commit, 1, 1), |
|