]> gitweb.ps.run Git - ps-cgit/blobdiff - cmd.c
cache: id means static, even if head is specified too
[ps-cgit] / cmd.c
diff --git a/cmd.c b/cmd.c
index 899e913b30967d4b4e1d3aa8a770dae148ab60ce..abe8e46098c0a284cb412b4328a5e9d33950566f 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -1,6 +1,7 @@
 /* cmd.c: the cgit command dispatcher
  *
  * Copyright (C) 2008 Lars Hjemli
+ * Copyright (C) 2013 Jason A. Donenfeld <Jason@zx2c4.com>.
  *
  * Licensed under GNU General Public License v2
  *   (see COPYING for full license text)
@@ -46,7 +47,7 @@ static void about_fn(struct cgit_context *ctx)
 
 static void blob_fn(struct cgit_context *ctx)
 {
-       cgit_print_blob(ctx->qry.sha1, ctx->qry.path, ctx->qry.head);
+       cgit_print_blob(ctx->qry.sha1, ctx->qry.path, ctx->qry.head, 0);
 }
 
 static void commit_fn(struct cgit_context *ctx)
@@ -166,7 +167,7 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx)
                        ctx->qry.page = "repolist";
        }
 
-       for(i = 0; i < sizeof(cmds)/sizeof(*cmds); i++)
+       for (i = 0; i < sizeof(cmds)/sizeof(*cmds); i++)
                if (!strcmp(ctx->qry.page, cmds[i].name))
                        return &cmds[i];
        return NULL;