diff options
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -30,6 +30,7 @@ int cgit_cache_static_ttl = -1; | |||
30 | int cgit_cache_max_create_time = 5; | 30 | int cgit_cache_max_create_time = 5; |
31 | 31 | ||
32 | int cgit_max_msg_len = 60; | 32 | int cgit_max_msg_len = 60; |
33 | int cgit_max_repodesc_len = 60; | ||
33 | int cgit_max_commit_count = 50; | 34 | int cgit_max_commit_count = 50; |
34 | 35 | ||
35 | int cgit_query_has_symref = 0; | 36 | int cgit_query_has_symref = 0; |
@@ -118,6 +119,8 @@ void cgit_global_config_cb(const char *name, const char *value) | |||
118 | cgit_cache_dynamic_ttl = atoi(value); | 119 | cgit_cache_dynamic_ttl = atoi(value); |
119 | else if (!strcmp(name, "max-message-length")) | 120 | else if (!strcmp(name, "max-message-length")) |
120 | cgit_max_msg_len = atoi(value); | 121 | cgit_max_msg_len = atoi(value); |
122 | else if (!strcmp(name, "max-repodesc-length")) | ||
123 | cgit_max_repodesc_len = atoi(value); | ||
121 | else if (!strcmp(name, "max-commit-count")) | 124 | else if (!strcmp(name, "max-commit-count")) |
122 | cgit_max_commit_count = atoi(value); | 125 | cgit_max_commit_count = atoi(value); |
123 | else if (!strcmp(name, "repo.url")) | 126 | else if (!strcmp(name, "repo.url")) |