summaryrefslogtreecommitdiffabout
path: root/shared.c
Side-by-side diff
Diffstat (limited to 'shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 801f68d..ffecac8 100644
--- a/shared.c
+++ b/shared.c
@@ -32,2 +32,3 @@ int cgit_cache_max_create_time = 5;
int cgit_max_msg_len = 60;
+int cgit_max_commit_count = 50;
@@ -122,2 +123,4 @@ void cgit_global_config_cb(const char *name, const char *value)
cgit_max_msg_len = atoi(value);
+ else if (!strcmp(name, "max-commit-count"))
+ cgit_max_commit_count = atoi(value);
else if (!strcmp(name, "repo.url"))