summaryrefslogtreecommitdiffabout
path: root/cmd.c
Unidiff
Diffstat (limited to 'cmd.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 489a11c..e0eacbe 100644
--- a/cmd.c
+++ b/cmd.c
@@ -1,26 +1,37 @@
1/* cmd.c: the cgit command dispatcher 1/* cmd.c: the cgit command dispatcher
2 * 2 *
3 * Copyright (C) 2008 Lars Hjemli 3 * Copyright (C) 2008 Lars Hjemli
4 * 4 *
5 * Licensed under GNU General Public License v2 5 * Licensed under GNU General Public License v2
6 * (see COPYING for full license text) 6 * (see COPYING for full license text)
7 */ 7 */
8 8
9#include "cgit.h" 9#include "cgit.h"
10#include "cmd.h" 10#include "cmd.h"
11#include "ui-blob.h"
12#include "ui-commit.h"
13#include "ui-diff.h"
14#include "ui-log.h"
15#include "ui-patch.h"
16#include "ui-refs.h"
17#include "ui-repolist.h"
18#include "ui-snapshot.h"
19#include "ui-summary.h"
20#include "ui-tag.h"
21#include "ui-tree.h"
11 22
12static void blob_fn(struct cgit_context *ctx) 23static void blob_fn(struct cgit_context *ctx)
13{ 24{
14 cgit_print_blob(ctx->qry.sha1, ctx->qry.path); 25 cgit_print_blob(ctx->qry.sha1, ctx->qry.path);
15} 26}
16 27
17static void commit_fn(struct cgit_context *ctx) 28static void commit_fn(struct cgit_context *ctx)
18{ 29{
19 cgit_print_commit(ctx->qry.sha1); 30 cgit_print_commit(ctx->qry.sha1);
20} 31}
21 32
22static void diff_fn(struct cgit_context *ctx) 33static void diff_fn(struct cgit_context *ctx)
23{ 34{
24 cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); 35 cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path);
25} 36}
26 37