|
diff --git a/cmd.c b/cmd.c index 4edca6b..fe0ea8f 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -19,33 +19,33 @@ |
19 | #include "ui-repolist.h" |
19 | #include "ui-repolist.h" |
20 | #include "ui-snapshot.h" |
20 | #include "ui-snapshot.h" |
21 | #include "ui-summary.h" |
21 | #include "ui-summary.h" |
22 | #include "ui-tag.h" |
22 | #include "ui-tag.h" |
23 | #include "ui-tree.h" |
23 | #include "ui-tree.h" |
24 | |
24 | |
25 | static void about_fn(struct cgit_context *ctx) |
25 | static void about_fn(struct cgit_context *ctx) |
26 | { |
26 | { |
27 | if (ctx->repo) |
27 | if (ctx->repo) |
28 | cgit_print_repo_readme(); |
28 | cgit_print_repo_readme(); |
29 | else |
29 | else |
30 | cgit_print_site_readme(); |
30 | cgit_print_site_readme(); |
31 | } |
31 | } |
32 | |
32 | |
33 | static void blob_fn(struct cgit_context *ctx) |
33 | static void blob_fn(struct cgit_context *ctx) |
34 | { |
34 | { |
35 | cgit_print_blob(ctx->qry.sha1, ctx->qry.path); |
35 | cgit_print_blob(ctx->qry.sha1, ctx->qry.path, ctx->qry.head); |
36 | } |
36 | } |
37 | |
37 | |
38 | static void commit_fn(struct cgit_context *ctx) |
38 | static void commit_fn(struct cgit_context *ctx) |
39 | { |
39 | { |
40 | cgit_print_commit(ctx->qry.sha1); |
40 | cgit_print_commit(ctx->qry.sha1); |
41 | } |
41 | } |
42 | |
42 | |
43 | static void diff_fn(struct cgit_context *ctx) |
43 | static void diff_fn(struct cgit_context *ctx) |
44 | { |
44 | { |
45 | cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); |
45 | cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); |
46 | } |
46 | } |
47 | |
47 | |
48 | static void log_fn(struct cgit_context *ctx) |
48 | static void log_fn(struct cgit_context *ctx) |
49 | { |
49 | { |
50 | cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count, |
50 | cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count, |
51 | ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1); |
51 | ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1); |
|