summaryrefslogtreecommitdiffabout
path: root/cmd.c
Unidiff
Diffstat (limited to 'cmd.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 4edca6b..fe0ea8f 100644
--- a/cmd.c
+++ b/cmd.c
@@ -23,25 +23,25 @@
23#include "ui-tree.h" 23#include "ui-tree.h"
24 24
25static void about_fn(struct cgit_context *ctx) 25static 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
33static void blob_fn(struct cgit_context *ctx) 33static 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
38static void commit_fn(struct cgit_context *ctx) 38static 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
43static void diff_fn(struct cgit_context *ctx) 43static 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