{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745906890,
"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":"e9f7ea47e845b85d1fe4f548fd544938",
"commit": {"type":"commit",
"time": 1530589970,
"time_ofs": 480,
"oid_tree": { "oid": "714041e469bbf34306c31b004d7b1fbc23470893", "alias": []},
"oid":{ "oid": "c9386a43c7ec1b2ed01bb5f9ba4b92409542b9bd", "alias": []},
"msg": "config: add repo 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": 1529303097, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "config: add repo inline-readme list\n\nThis allows the user to choose to override any global\ninline-readme list for a specific repo, using the\nsame kind of semantics as the other repo overrides.\n\nSigned-off-by: Andy Green \u003candy@warmcat.com\u003e\nReviewed-by: John Keeping \u003cjohn@keeping.me.uk\u003e"
,
"diff": "diff --git a/cgit.c b/cgit.c\nindex b5b69e7..d7e11a8 100644\n--- a/cgit.c\n+++ b/cgit.c\n@@ -95,7 +95,12 @@ static void repo_config(struct cgit_repo *repo, const char *name, const char *va\n \t\trepo-\u003ehide \u003d atoi(value);\n \telse if (!strcmp(name, \u0022ignore\u0022))\n \t\trepo-\u003eignore \u003d atoi(value);\n-\telse if (ctx.cfg.enable_filter_overrides) {\n+\telse if (!strcmp(name, \u0022inline-readme\u0022)) {\n+\t\tif (repo-\u003einline_readme.items \u003d\u003d ctx.cfg.inline_readme.items)\n+\t\t\tstring_list_init(\u0026repo-\u003einline_readme, 1);\n+\n+\t\tstring_list_append(\u0026repo-\u003einline_readme, value);\n+\t} else if (ctx.cfg.enable_filter_overrides) {\n \t\tif (!strcmp(name, \u0022about-filter\u0022))\n \t\t\trepo-\u003eabout_filter \u003d cgit_new_filter(value, ABOUT);\n \t\telse if (!strcmp(name, \u0022commit-filter\u0022))\ndiff --git a/cgit.h b/cgit.h\nindex 583c84e..60b7554 100644\n--- a/cgit.h\n+++ b/cgit.h\n@@ -87,6 +87,7 @@ struct cgit_repo {\n \tchar *defbranch;\n \tchar *module_link;\n \tstruct string_list readme;\n+\tstruct string_list inline_readme;\n \tchar *section;\n \tchar *clone_url;\n \tchar *logo;\ndiff --git a/cgitrc.5.txt b/cgitrc.5.txt\nindex 7fdf280..1d62775 100644\n--- a/cgitrc.5.txt\n+++ b/cgitrc.5.txt\n@@ -550,6 +550,15 @@ repo.ignore::\n \tis not shown in the index and cannot be accessed by providing a direct\n \tpath. Default value: \u00220\u0022. See also: \u0022repo.hide\u0022.\n \n+repo.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'repo.inline-readme\u003dREADME.md'. Wildcards are possible at the start, eg\n+\t'repo.inline-readme\u003d*.md'.\n+\tIf not given, the repo will use any global 'inline-readme\u003d' configuration;\n+\tif any 'repo.inline-readme' are given only they are used for that repo,\n+\tand the global 'inline-readme\u003d' list is ignored for that repo.\n+\n repo.logo::\n \tUrl which specifies the source of an image which will be used as a logo\n \ton this repo's pages. Default value: global logo.\ndiff --git a/shared.c b/shared.c\nindex 6cda79e..8721a6f 100644\n--- a/shared.c\n+++ b/shared.c\n@@ -77,6 +77,8 @@ struct cgit_repo *cgit_add_repo(const char *url)\n \tret-\u003eclone_url \u003d ctx.cfg.clone_url;\n \tret-\u003esubmodules.strdup_strings \u003d 1;\n \tret-\u003ehide \u003d ret-\u003eignore \u003d 0;\n+\tret-\u003einline_readme \u003d ctx.cfg.inline_readme;\n+\n \treturn ret;\n }\n \n","s":{"c":1745906890,"u": 7626}}
],"g": 8544,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}