{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1750307725,
"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":"1bbd6f45f03910cb987dd4ec9ccdf583",
"commit": {"type":"commit",
"time": 1529303826,
"time_ofs": 480,
"oid_tree": { "oid": "0bfa83b8406ff223aab5ef9923d53604f1dd486f", "alias": []},
"oid":{ "oid": "b2a1f0950c1c99ff75a560be52ba5e1397983a21", "alias": []},
"msg": "config: add repo inline-readme list",
"sig_commit": { "git_time": { "time": 1529303826, "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\n"
,
"diff": "diff --git a/cgit.c b/cgit.c\nindex b115ead..41288f0 100644\n--- a/cgit.c\n+++ b/cgit.c\n@@ -105,6 +105,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 (!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}\n \telse 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);\ndiff --git a/cgit.h b/cgit.h\nindex 88ab24a..9435845 100644\n--- a/cgit.h\n+++ b/cgit.h\n@@ -86,6 +86,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 3879231..b5db619 100644\n--- a/cgitrc.5.txt\n+++ b/cgitrc.5.txt\n@@ -562,6 +562,16 @@ 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'. You may also want a corresponding render.\n+\tentry for the readme suffix, eg,\n+\t'render.md\u003d/usr/libexec/cgit/filters/html-converters/md2html'.\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 665f8ed..cd0782d 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":1750210105,"u": 1710}}
],"g": 1278,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}