|
diff --git a/cmd.c b/cmd.c index 893ae25..605876b 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -77,33 +77,33 @@ static void ls_cache_fn(struct cgit_context *ctx) |
77 | cgit_print_http_headers(ctx); |
77 | cgit_print_http_headers(ctx); |
78 | cache_ls(ctx->cfg.cache_root); |
78 | cache_ls(ctx->cfg.cache_root); |
79 | } |
79 | } |
80 | |
80 | |
81 | static void objects_fn(struct cgit_context *ctx) |
81 | static void objects_fn(struct cgit_context *ctx) |
82 | { |
82 | { |
83 | cgit_clone_objects(ctx); |
83 | cgit_clone_objects(ctx); |
84 | } |
84 | } |
85 | |
85 | |
86 | static void repolist_fn(struct cgit_context *ctx) |
86 | static void repolist_fn(struct cgit_context *ctx) |
87 | { |
87 | { |
88 | cgit_print_repolist(); |
88 | cgit_print_repolist(); |
89 | } |
89 | } |
90 | |
90 | |
91 | static void patch_fn(struct cgit_context *ctx) |
91 | static void patch_fn(struct cgit_context *ctx) |
92 | { |
92 | { |
93 | cgit_print_patch(ctx->qry.sha1); |
93 | cgit_print_patch(ctx->qry.sha1, ctx->qry.path); |
94 | } |
94 | } |
95 | |
95 | |
96 | static void plain_fn(struct cgit_context *ctx) |
96 | static void plain_fn(struct cgit_context *ctx) |
97 | { |
97 | { |
98 | cgit_print_plain(ctx); |
98 | cgit_print_plain(ctx); |
99 | } |
99 | } |
100 | |
100 | |
101 | static void refs_fn(struct cgit_context *ctx) |
101 | static void refs_fn(struct cgit_context *ctx) |
102 | { |
102 | { |
103 | cgit_print_refs(); |
103 | cgit_print_refs(); |
104 | } |
104 | } |
105 | |
105 | |
106 | static void snapshot_fn(struct cgit_context *ctx) |
106 | static void snapshot_fn(struct cgit_context *ctx) |
107 | { |
107 | { |
108 | cgit_print_snapshot(ctx->qry.head, ctx->qry.sha1, ctx->qry.path, |
108 | cgit_print_snapshot(ctx->qry.head, ctx->qry.sha1, ctx->qry.path, |
109 | ctx->repo->snapshots, ctx->qry.nohead); |
109 | ctx->repo->snapshots, ctx->qry.nohead); |
|