diff options
author | Michael Krelin <hacker@klever.net> | 2008-06-25 01:33:24 +0400 |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-06-25 01:33:24 +0400 |
commit | 01d2dce7e73e3f022d186de27dd5d15574144ca8 (patch) | |
tree | eeb2cc9089b048ddb6ee7c2f2c1ca5738b6e6a51 /cmd.c | |
parent | e6b635c2b1a0b2c08170c70e8b9e59f4b9789431 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,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); + cgit_print_blob(ctx->qry.sha1, ctx->qry.path, ctx->qry.head); } static void commit_fn(struct cgit_context *ctx) |