about summary refs log tree commit diff stats
path: root/cgit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c index 2f07e6d..2910d4b 100644 --- a/cgit.c +++ b/cgit.c
@@ -50,6 +50,8 @@ static void repo_config(struct cgit_repo *repo, const char *name, const char *va
50 repo->extra_head_content = xstrdup(value); 50 repo->extra_head_content = xstrdup(value);
51 else if (!strcmp(name, "snapshots")) 51 else if (!strcmp(name, "snapshots"))
52 repo->snapshots = ctx.cfg.snapshots & cgit_parse_snapshots_mask(value); 52 repo->snapshots = ctx.cfg.snapshots & cgit_parse_snapshots_mask(value);
53 else if (!strcmp(name, "enable-blame"))
54 repo->enable_blame = atoi(value);
53 else if (!strcmp(name, "enable-commit-graph")) 55 else if (!strcmp(name, "enable-commit-graph"))
54 repo->enable_commit_graph = atoi(value); 56 repo->enable_commit_graph = atoi(value);
55 else if (!strcmp(name, "enable-log-filecount")) 57 else if (!strcmp(name, "enable-log-filecount"))
@@ -809,6 +811,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo)
809 fprintf(f, "repo.homepage=%s\n", repo->homepage); 811 fprintf(f, "repo.homepage=%s\n", repo->homepage);
810 if (repo->clone_url) 812 if (repo->clone_url)
811 fprintf(f, "repo.clone-url=%s\n", repo->clone_url); 813 fprintf(f, "repo.clone-url=%s\n", repo->clone_url);
814 fprintf(f, "repo.enable-blame=%d\n",
815 repo->enable_blame);
812 fprintf(f, "repo.enable-commit-graph=%d\n", 816 fprintf(f, "repo.enable-commit-graph=%d\n",
813 repo->enable_commit_graph); 817 repo->enable_commit_graph);
814 fprintf(f, "repo.enable-log-filecount=%d\n", 818 fprintf(f, "repo.enable-log-filecount=%d\n",