author | Lars Hjemli <hjemli@gmail.com> | 2007-10-25 08:40:16 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-10-27 08:53:27 (UTC) |
commit | fe211c7eef6c7d3e39486d6a7484d3b4debff88f (patch) (unidiff) | |
tree | 1b77d4b541cd5848ae1ad8d48e17e7d0f1a8b017 /shared.c | |
parent | ef1cc6ef941cedf2e34fa1ed34ca8cd8a0cfdacc (diff) | |
download | cgit-fe211c7eef6c7d3e39486d6a7484d3b4debff88f.zip cgit-fe211c7eef6c7d3e39486d6a7484d3b4debff88f.tar.gz cgit-fe211c7eef6c7d3e39486d6a7484d3b4debff88f.tar.bz2 |
Add support for config param summary-tags
This parameter can be used to specify max number of tags to show on
the summary page. If not specified, all tags are printed.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | shared.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -33,16 +33,17 @@ int cgit_enable_log_filecount = 0; | |||
33 | int cgit_enable_log_linecount = 0; | 33 | int cgit_enable_log_linecount = 0; |
34 | int cgit_max_lock_attempts = 5; | 34 | int cgit_max_lock_attempts = 5; |
35 | int cgit_cache_root_ttl = 5; | 35 | int cgit_cache_root_ttl = 5; |
36 | int cgit_cache_repo_ttl = 5; | 36 | int cgit_cache_repo_ttl = 5; |
37 | int cgit_cache_dynamic_ttl = 5; | 37 | int cgit_cache_dynamic_ttl = 5; |
38 | int cgit_cache_static_ttl = -1; | 38 | int cgit_cache_static_ttl = -1; |
39 | int cgit_cache_max_create_time = 5; | 39 | int cgit_cache_max_create_time = 5; |
40 | int cgit_summary_log = 0; | 40 | int cgit_summary_log = 0; |
41 | int cgit_summary_tags = 0; | ||
41 | int cgit_renamelimit = -1; | 42 | int cgit_renamelimit = -1; |
42 | 43 | ||
43 | int cgit_max_msg_len = 60; | 44 | int cgit_max_msg_len = 60; |
44 | int cgit_max_repodesc_len = 60; | 45 | int cgit_max_repodesc_len = 60; |
45 | int cgit_max_commit_count = 50; | 46 | int cgit_max_commit_count = 50; |
46 | 47 | ||
47 | int cgit_query_has_symref = 0; | 48 | int cgit_query_has_symref = 0; |
48 | int cgit_query_has_sha1 = 0; | 49 | int cgit_query_has_sha1 = 0; |
@@ -176,16 +177,18 @@ void cgit_global_config_cb(const char *name, const char *value) | |||
176 | else if (!strcmp(name, "max-message-length")) | 177 | else if (!strcmp(name, "max-message-length")) |
177 | cgit_max_msg_len = atoi(value); | 178 | cgit_max_msg_len = atoi(value); |
178 | else if (!strcmp(name, "max-repodesc-length")) | 179 | else if (!strcmp(name, "max-repodesc-length")) |
179 | cgit_max_repodesc_len = atoi(value); | 180 | cgit_max_repodesc_len = atoi(value); |
180 | else if (!strcmp(name, "max-commit-count")) | 181 | else if (!strcmp(name, "max-commit-count")) |
181 | cgit_max_commit_count = atoi(value); | 182 | cgit_max_commit_count = atoi(value); |
182 | else if (!strcmp(name, "summary-log")) | 183 | else if (!strcmp(name, "summary-log")) |
183 | cgit_summary_log = atoi(value); | 184 | cgit_summary_log = atoi(value); |
185 | else if (!strcmp(name, "summary-tags")) | ||
186 | cgit_summary_tags = atoi(value); | ||
184 | else if (!strcmp(name, "agefile")) | 187 | else if (!strcmp(name, "agefile")) |
185 | cgit_agefile = xstrdup(value); | 188 | cgit_agefile = xstrdup(value); |
186 | else if (!strcmp(name, "renamelimit")) | 189 | else if (!strcmp(name, "renamelimit")) |
187 | cgit_renamelimit = atoi(value); | 190 | cgit_renamelimit = atoi(value); |
188 | else if (!strcmp(name, "repo.group")) | 191 | else if (!strcmp(name, "repo.group")) |
189 | cgit_repo_group = xstrdup(value); | 192 | cgit_repo_group = xstrdup(value); |
190 | else if (!strcmp(name, "repo.url")) | 193 | else if (!strcmp(name, "repo.url")) |
191 | cgit_repo = add_repo(value); | 194 | cgit_repo = add_repo(value); |