mirror of
https://git.zx2c4.com/cgit
synced 2025-06-28 12:30:09 +02:00
readme: use string_list instead of space deliminations
Now this is possible in cgitrc - readme=:README.md readme=:readme.md readme=:README.mkd readme=:readme.mkd readme=:README.rst readme=:readme.rst readme=:README.html readme=:readme.html readme=:README.htm readme=:readme.htm readme=:README.txt readme=:readme.txt readme=:README readme=:readme readme=:INSTALL.txt readme=:install.txt readme=:INSTALL readme=:install Suggested-by: John Keeping <john@keeping.me.uk> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
fe36f84d84
commit
dcbc0438b2
10 changed files with 162 additions and 124 deletions
3
cmd.c
3
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue