{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745907135,
"reponame":"cgit",
"desc":"CGI gitweb",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/cgit",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"d9ab38f4a6858af4d02dca9e9453b7b4",
"commit": {"type":"commit",
"time": 1530589970,
"time_ofs": 480,
"oid_tree": { "oid": "1c5165f933db55d6680a63f8d1d8ab958355fb79", "alias": []},
"oid":{ "oid": "4e5461e673b828cbe3c3992f033a5fd562422c1a", "alias": []},
"msg": "config: add global inline-readme list",
"sig_commit": { "git_time": { "time": 1530589970, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1529303076, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "config: add global inline-readme list\n\nAllows the user to specify a list of filenames that should be\nrendered inline with tree view, if present in the directory.\n\nSigned-off-by: Andy Green \u003candy@warmcat.com\u003e"
,
"diff": "diff --git a/cgit.c b/cgit.c\nindex c938719..b5b69e7 100644\n--- a/cgit.c\n+++ b/cgit.c\n@@ -1,6 +1,6 @@\n /* cgit.c: cgi for the git scm\n *\n- * Copyright (C) 2006-2014 cgit Development Team \u003ccgit@lists.zx2c4.com\u003e\n+ * Copyright (C) 2006-2018 cgit Development Team \u003ccgit@lists.zx2c4.com\u003e\n *\n * Licensed under GNU General Public License v2\n * (see COPYING for full license text)\n@@ -289,6 +289,8 @@ static void config_cb(const char *name, const char *value)\n \t\t\tctx.cfg.branch_sort \u003d 0;\n \t} else if (skip_prefix(name, \u0022mimetype.\u0022, \u0026arg))\n \t\tadd_mimetype(arg, value);\n+\telse if (!strcmp(name, \u0022inline-readme\u0022))\n+\t\tstring_list_insert(\u0026ctx.cfg.inline_readme, value);\n \telse if (!strcmp(name, \u0022include\u0022))\n \t\tparse_configfile(expand_macros(value), config_cb);\n }\n@@ -420,6 +422,7 @@ static void prepare_context(void)\n \tctx.page.expires \u003d ctx.page.modified;\n \tctx.page.etag \u003d NULL;\n \tstring_list_init(\u0026ctx.cfg.mimetypes, 1);\n+\tstring_list_init(\u0026ctx.cfg.inline_readme, 1);\n \tif (ctx.env.script_name)\n \t\tctx.cfg.script_name \u003d xstrdup(ctx.env.script_name);\n \tif (ctx.env.query_string)\ndiff --git a/cgit.h b/cgit.h\nindex b009328..583c84e 100644\n--- a/cgit.h\n+++ b/cgit.h\n@@ -264,6 +264,7 @@ struct cgit_config {\n \tint branch_sort;\n \tint commit_sort;\n \tstruct string_list mimetypes;\n+\tstruct string_list inline_readme;\n \tstruct cgit_filter *about_filter;\n \tstruct cgit_filter *commit_filter;\n \tstruct cgit_filter *source_filter;\ndiff --git a/cgitrc.5.txt b/cgitrc.5.txt\nindex 00900b1..7fdf280 100644\n--- a/cgitrc.5.txt\n+++ b/cgitrc.5.txt\n@@ -245,6 +245,15 @@ include::\n \tName of a configfile to include before the rest of the current config-\n \tfile is parsed. Default value: none. See also: \u0022MACRO EXPANSION\u0022.\n \n+inline-readme::\n+\tAppend given filename to the list of filenames to be rendered after the\n+\ttree navigation in tree view, if present in the directory being viewed. Eg,\n+\t'inline-readme\u003dREADME.md'. Wildcards are allowed at the start, eg,\n+\t'inline-readme\u003d*.md'.\n+\tRepos will use the list defined with 'inline-readme' by default, however\n+\tthey can individually also choose to ignore this global list, and create a\n+\trepo-specific list by using 'repo.inline-readme'.\n+\n local-time::\n \tFlag which, if set to \u00221\u0022, makes cgit print commit and tag times in the\n \tservers timezone. Default value: \u00220\u0022.\n","s":{"c":1745907135,"u": 3669}}
],"g": 4789,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}