diff options
| author | Jeff Smith <[email protected]> | 2017-10-02 04:39:08 +0000 |
|---|---|---|
| committer | John Keeping <[email protected]> | 2017-10-03 18:19:34 +0000 |
| commit | c1cd290d1f83d3d1c2d081d734e8d213f12cc06b (patch) | |
| tree | ad5027076d139912140c45b6baec2d390389f7a1 /cgit.c | |
| parent | ui-shared: make a char* parameter const (diff) | |
| download | cgit-c1cd290d1f83d3d1c2d081d734e8d213f12cc06b.tar.gz 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 <[email protected]>
Reviewed-by: John Keeping <[email protected]>
Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -167,6 +167,8 @@ static void config_cb(const char *name, const char *value) ctx.cfg.enable_index_links = atoi(value); else if (!strcmp(name, "enable-index-owner")) ctx.cfg.enable_index_owner = atoi(value); + else if (!strcmp(name, "enable-blame")) + ctx.cfg.enable_blame = atoi(value); else if (!strcmp(name, "enable-commit-graph")) ctx.cfg.enable_commit_graph = atoi(value); else if (!strcmp(name, "enable-log-filecount")) |
