diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-05-26 22:20:02 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-05-26 23:30:03 (JST) |
commit | dcbc0438b2543a733858d62170f3110a89edbed6 (patch) | |
tree | bdacfe4546c88bf6b03860ea69a0cad885fa6af4 /ui-shared.c | |
parent | fe36f84d843cd755c6dab629a0758264de5bcc00 (diff) | |
download | cgit-dcbc0438b2543a733858d62170f3110a89edbed6.zip cgit-dcbc0438b2543a733858d62170f3110a89edbed6.tar.gz |
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>
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 519eef7..7ab2ab1 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -864,7 +864,7 @@ void cgit_print_pageheader(struct cgit_context *ctx) | |||
864 | if (ctx->repo->max_stats) | 864 | if (ctx->repo->max_stats) |
865 | cgit_stats_link("stats", NULL, hc(ctx, "stats"), | 865 | cgit_stats_link("stats", NULL, hc(ctx, "stats"), |
866 | ctx->qry.head, ctx->qry.vpath); | 866 | ctx->qry.head, ctx->qry.vpath); |
867 | if (ctx->repo->readme) | 867 | if (ctx->repo->readme.nr) |
868 | reporevlink("about", "about", NULL, | 868 | reporevlink("about", "about", NULL, |
869 | hc(ctx, "about"), ctx->qry.head, NULL, | 869 | hc(ctx, "about"), ctx->qry.head, NULL, |
870 | NULL); | 870 | NULL); |