|
diff --git a/cgit.c b/cgit.c index 412fbf0..53ab68d 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -59,2 +59,4 @@ void repo_config(struct cgit_repo *repo, const char *name, const char *value) |
59 | repo->snapshots = ctx.cfg.snapshots & cgit_parse_snapshots_mask(value); |
59 | repo->snapshots = ctx.cfg.snapshots & cgit_parse_snapshots_mask(value); |
| |
60 | else if (!strcmp(name, "enable-commit-graph")) |
| |
61 | repo->enable_commit_graph = ctx.cfg.enable_commit_graph * atoi(value); |
60 | else if (!strcmp(name, "enable-log-filecount")) |
62 | else if (!strcmp(name, "enable-log-filecount")) |
@@ -143,2 +145,4 @@ void config_cb(const char *name, const char *value) |
143 | ctx.cfg.enable_index_links = atoi(value); |
145 | ctx.cfg.enable_index_links = atoi(value); |
| |
146 | else if (!strcmp(name, "enable-commit-graph")) |
| |
147 | ctx.cfg.enable_commit_graph = atoi(value); |
144 | else if (!strcmp(name, "enable-log-filecount")) |
148 | else if (!strcmp(name, "enable-log-filecount")) |
@@ -542,2 +546,4 @@ void print_repo(FILE *f, struct cgit_repo *repo) |
542 | fprintf(f, "repo.clone-url=%s\n", repo->clone_url); |
546 | fprintf(f, "repo.clone-url=%s\n", repo->clone_url); |
| |
547 | fprintf(f, "repo.enable-commit-graph=%d\n", |
| |
548 | repo->enable_commit_graph); |
543 | fprintf(f, "repo.enable-log-filecount=%d\n", |
549 | fprintf(f, "repo.enable-log-filecount=%d\n", |
|