author | Lars Hjemli <hjemli@gmail.com> | 2007-05-13 15:15:06 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-13 15:15:06 (UTC) |
commit | c6cf3a424a0860d69b290254d9b19d35527b2d27 (patch) (unidiff) | |
tree | 2874f2c42e907cba1187ae32ee686daebc2de59e /cgitrc | |
parent | 80e577c3ef2a73becabff7e9c9c242f317a87de9 (diff) | |
download | cgit-c6cf3a424a0860d69b290254d9b19d35527b2d27.zip cgit-c6cf3a424a0860d69b290254d9b19d35527b2d27.tar.gz cgit-c6cf3a424a0860d69b290254d9b19d35527b2d27.tar.bz2 |
Add max-commit-count parameter to cgitrc
This enabled customizing number of commits shown per page in log view. It
also changes the default from 100 to 50, mainly due to the more cpu
intensive log pages (number of files/lines changed) but also since 100
log messages requires excessive scrolling.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgitrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -34,48 +34,52 @@ | |||
34 | ## Set the title printed on the root page | 34 | ## Set the title printed on the root page |
35 | #root-title=Git repository browser | 35 | #root-title=Git repository browser |
36 | 36 | ||
37 | 37 | ||
38 | ## Link to css file | 38 | ## Link to css file |
39 | #css=/cgit/cgit.css | 39 | #css=/cgit/cgit.css |
40 | 40 | ||
41 | 41 | ||
42 | ## Link to logo file | 42 | ## Link to logo file |
43 | #logo=/cgit/git-logo.png | 43 | #logo=/cgit/git-logo.png |
44 | 44 | ||
45 | 45 | ||
46 | ## Url loaded when clicking the logo | 46 | ## Url loaded when clicking the logo |
47 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ | 47 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
48 | 48 | ||
49 | 49 | ||
50 | ## Url loaded when clicking a submodule link | 50 | ## Url loaded when clicking a submodule link |
51 | #module-link=./?repo=%s&page=commit&id=%s | 51 | #module-link=./?repo=%s&page=commit&id=%s |
52 | 52 | ||
53 | 53 | ||
54 | ## Number of chars shown of commit subject message (in log view) | 54 | ## Number of chars shown of commit subject message (in log view) |
55 | #max-message-length=60 | 55 | #max-message-length=60 |
56 | 56 | ||
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 |
59 | #cache-root=/var/cache/cgit | 63 | #cache-root=/var/cache/cgit |
60 | 64 | ||
61 | 65 | ||
62 | ## | 66 | ## |
63 | ## Time-To-Live settings: specifies how long (in minutes) different pages | 67 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
64 | ## should be cached (0 for instant expiration, -1 for immortal pages) | 68 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
65 | ## | 69 | ## |
66 | 70 | ||
67 | ## ttl for root page | 71 | ## ttl for root page |
68 | #cache-root-ttl=5 | 72 | #cache-root-ttl=5 |
69 | 73 | ||
70 | ## ttl for repo summary page | 74 | ## ttl for repo summary page |
71 | #cache-repo-ttl=5 | 75 | #cache-repo-ttl=5 |
72 | 76 | ||
73 | ## ttl for other dynamic pages | 77 | ## ttl for other dynamic pages |
74 | #cache-dynamic-ttl=5 | 78 | #cache-dynamic-ttl=5 |
75 | 79 | ||
76 | ## ttl for static pages (addressed by SHA-1) | 80 | ## ttl for static pages (addressed by SHA-1) |
77 | #cache-static-ttl=-1 | 81 | #cache-static-ttl=-1 |
78 | 82 | ||
79 | 83 | ||
80 | 84 | ||
81 | ## Example repository entry. Required values are repo.url and repo.path (each | 85 | ## Example repository entry. Required values are repo.url and repo.path (each |