|
diff --git a/cgit.c b/cgit.c index 28bab8d..aee7ba3 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -109,4 +109,4 @@ static void cgit_print_repo_page(struct cacheitem *item) |
109 | if (!strcmp(cgit_query_page, "log")) { |
109 | if (!strcmp(cgit_query_page, "log")) { |
110 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100, |
110 | cgit_print_log(cgit_query_head, cgit_query_ofs, |
111 | cgit_query_search); |
111 | cgit_max_commit_count, cgit_query_search); |
112 | } else if (!strcmp(cgit_query_page, "tree")) { |
112 | } else if (!strcmp(cgit_query_page, "tree")) { |
|
|
diff --git a/cgit.h b/cgit.h index 43de375..46f3173 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -89,2 +89,3 @@ extern int cgit_cache_max_create_time; |
89 | extern int cgit_max_msg_len; |
89 | extern int cgit_max_msg_len; |
| |
90 | extern int cgit_max_commit_count; |
90 | |
91 | |
|
|
diff --git a/cgitrc b/cgitrc index f217b39..019781e 100644 --- a/ cgitrc+++ b/ cgitrc |
|
@@ -57,2 +57,6 @@ |
57 | |
57 | |
| |
58 | ## Number of commits per page in log view |
| |
59 | #max-commit-count=50 |
| |
60 | |
| |
61 | |
58 | ## Root of cached output |
62 | ## Root of cached output |
|
|
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; |
32 | int cgit_max_msg_len = 60; |
32 | int cgit_max_msg_len = 60; |
| |
33 | int cgit_max_commit_count = 50; |
33 | |
34 | |
@@ -122,2 +123,4 @@ void cgit_global_config_cb(const char *name, const char *value) |
122 | cgit_max_msg_len = atoi(value); |
123 | cgit_max_msg_len = atoi(value); |
| |
124 | else if (!strcmp(name, "max-commit-count")) |
| |
125 | cgit_max_commit_count = atoi(value); |
123 | else if (!strcmp(name, "repo.url")) |
126 | else if (!strcmp(name, "repo.url")) |
|