[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH 3/3] Fixed parameter parsing in repo_config() function
From: Tobias.Bieniek () gmx ! de (Tobias Bieniek)
Date: 2012-07-02 15:38:58
Message-ID: 1341243538-15160-3-git-send-email-Tobias.Bieniek () gmx ! de
[Download RAW message or body]
This makes it possible to activate the enable_commit_graph,
enable_log_filecount and enable_log_linecount for individual
repositories, even if the global setting is "0" (default).
---
cgit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cgit.c b/cgit.c
index f8c9a53..ca427cb 100644
--- a/cgit.c
+++ b/cgit.c
@@ -75,11 +75,11 @@ void repo_config(struct cgit_repo *repo, const char *name, const char *value)
else if (!strcmp(name, "snapshots"))
repo->snapshots = ctx.cfg.snapshots & cgit_parse_snapshots_mask(value);
else if (!strcmp(name, "enable-commit-graph"))
- repo->enable_commit_graph = ctx.cfg.enable_commit_graph * atoi(value);
+ repo->enable_commit_graph = atoi(value);
else if (!strcmp(name, "enable-log-filecount"))
- repo->enable_log_filecount = ctx.cfg.enable_log_filecount * atoi(value);
+ repo->enable_log_filecount = atoi(value);
else if (!strcmp(name, "enable-log-linecount"))
- repo->enable_log_linecount = ctx.cfg.enable_log_linecount * atoi(value);
+ repo->enable_log_linecount = atoi(value);
else if (!strcmp(name, "enable-remote-branches"))
repo->enable_remote_branches = atoi(value);
else if (!strcmp(name, "enable-subject-links"))
--
1.7.10
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic