about summary refs log tree commit diff stats
path: root/cmd.c
diff options
context:
space:
mode:
authorMichael Krelin2008-06-24 23:33:24 +0200
committerMichael Krelin2008-06-24 23:33:24 +0200
commit01d2dce7e73e3f022d186de27dd5d15574144ca8 (patch)
treeeeb2cc9089b048ddb6ee7c2f2c1ca5738b6e6a51 /cmd.c
parentAdded root-desc to default configuration. (diff)
downloadcgit-01d2dce7e73e3f022d186de27dd5d15574144ca8.tar.gz
cgit-01d2dce7e73e3f022d186de27dd5d15574144ca8.zip
allow blob extract blobs by head/path combination
 If blob is invoked with no id=, it tries to look up h= and search for path= in
 there. Once found, proceed as normal, otherwise, fail as normal.

Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'cmd.c')
-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
@@ -32,7 +32,7 @@ static void about_fn(struct cgit_context *ctx)
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)