Warmcat homepage andy@warmcat.com
libwebsockets
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1745907257, "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":"3416f7c4230d9ed1e9100685f22c7c94", "commit": {"type":"commit", "time": 1530589970, "time_ofs": 480, "oid_tree": { "oid": "22fba8b32cd84bc714fdad4033cf49033b66fd52", "alias": []}, "oid":{ "oid": "9a9ae812cb5d8736498fd13bd65e5644ee6f5e4f", "alias": []}, "msg": "client-side: add config to enable clientside", "sig_commit": { "git_time": { "time": 1530589970, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1530581335, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "client-side: add config to enable clientside\n\nSet \u0022clientside\u003d1\u0022 in config to enable clientside\nline number generation, syntax highlighting, and\nmarkdown render.\n\nSigned-off-by: Andy Green \u003candy@warmcat.com\u003e" , "diff": "diff --git a/cgit.c b/cgit.c\nindex 98196aa..5a7242e 100644\n--- a/cgit.c\n+++ b/cgit.c\n@@ -242,6 +242,8 @@ static void config_cb(const char *name, const char *value)\n \t\tctx.cfg.max_commit_count \u003d atoi(value);\n \telse if (!strcmp(name, \u0022project-list\u0022))\n \t\tctx.cfg.project_list \u003d xstrdup(expand_macros(value));\n+\telse if (!strcmp(name, \u0022clientside\u0022))\n+\t\tctx.cfg.clientside \u003d atoi(value);\n \telse if (!strcmp(name, \u0022scan-path\u0022))\n \t\tif (ctx.cfg.cache_size)\n \t\t\tprocess_cached_repolist(expand_macros(value));\ndiff --git a/cgit.h b/cgit.h\nindex 2923e3a..b00e4cd 100644\n--- a/cgit.h\n+++ b/cgit.h\n@@ -226,6 +226,7 @@ struct cgit_config {\n \tint cache_about_ttl;\n \tint cache_snapshot_ttl;\n \tint case_sensitive_sort;\n+\tint clientside;\n \tint embedded;\n \tint enable_filter_overrides;\n \tint enable_follow_links;\ndiff --git a/cgitrc.5.txt b/cgitrc.5.txt\nindex 3422dcc..5b1140b 100644\n--- a/cgitrc.5.txt\n+++ b/cgitrc.5.txt\n@@ -100,6 +100,10 @@ cache-static-ttl::\n \tversion of repository pages accessed with a fixed SHA1. See also:\n \t\u0022CACHE\u0022. Default value: -1\u0022.\n \n+clientside::\n+\tSet to nonzero to enable clientside rendering for highlighting,\n+\tline numbers, and inline-readme markup.\n+\n clone-prefix::\n \tSpace-separated list of common prefixes which, when combined with a\n \trepository url, generates valid clone urls for the repository. This\n","s":{"c":1745907257,"u": 3766}} ],"g": 4833,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}