aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorJeff Smith2017-10-01 23:39:08 -0500
committerJohn Keeping2017-10-03 19:19:34 +0100
commitc1cd290d1f83d3d1c2d081d734e8d213f12cc06b (patch)
treead5027076d139912140c45b6baec2d390389f7a1 /cgit.c
parentf6ffe40d1a2c985494e48dc2d36663ffde1e6044 (diff)
downloadcgit-c1cd290d1f83d3d1c2d081d734e8d213f12cc06b.tar.gz
cgit-c1cd290d1f83d3d1c2d081d734e8d213f12cc06b.tar.bz2
cgit-c1cd290d1f83d3d1c2d081d734e8d213f12cc06b.zip
ui-blame: add blame UI
Implement a page which provides the blame view of a specified file. This feature is controlled by a new config variable, "enable-blame", which is disabled by default. Signed-off-by: Jeff Smith <whydoubt@gmail.com> Reviewed-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 1dae4b8..972a67e 100644
--- a/cgit.c
+++ b/cgit.c
@@ -167,6 +167,8 @@ static void config_cb(const char *name, const char *value)
167 ctx.cfg.enable_index_links = atoi(value); 167 ctx.cfg.enable_index_links = atoi(value);
168 else if (!strcmp(name, "enable-index-owner")) 168 else if (!strcmp(name, "enable-index-owner"))
169 ctx.cfg.enable_index_owner = atoi(value); 169 ctx.cfg.enable_index_owner = atoi(value);
170 else if (!strcmp(name, "enable-blame"))
171 ctx.cfg.enable_blame = atoi(value);
170 else if (!strcmp(name, "enable-commit-graph")) 172 else if (!strcmp(name, "enable-commit-graph"))
171 ctx.cfg.enable_commit_graph = atoi(value); 173 ctx.cfg.enable_commit_graph = atoi(value);
172 else if (!strcmp(name, "enable-log-filecount")) 174 else if (!strcmp(name, "enable-log-filecount"))