summaryrefslogtreecommitdiffabout
path: root/cgitrc.5.txt
authorLars Hjemli <hjemli@gmail.com>2008-12-06 16:38:19 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-12-06 16:38:19 (UTC)
commitf86a23ff537258d36bf8f1876fa7a4bede6673d8 (patch) (unidiff)
tree8328d415416058cdc5b0fd2c6564ddcab5766c7a /cgitrc.5.txt
parent140012d7a8e51df5a9f9c556696778b86ade4fc9 (diff)
downloadcgit-f86a23ff537258d36bf8f1876fa7a4bede6673d8.zip
cgit-f86a23ff537258d36bf8f1876fa7a4bede6673d8.tar.gz
cgit-f86a23ff537258d36bf8f1876fa7a4bede6673d8.tar.bz2
Add a 'stats' page to each repo
This new page, which is disabled by default, can be used to print some statistics about the number of commits per period in the repository, where period can be either weeks, months, quarters or years. The function can be activated globally by setting 'enable-stats=1' in cgitrc and disabled for individual repos by setting 'repo.enable-stats=0'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgitrc.5.txt') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc.5.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 7887b02..60d3ea4 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -61,32 +61,36 @@ css
61 61
62enable-index-links 62enable-index-links
63 Flag which, when set to "1", will make cgit generate extra links for 63 Flag which, when set to "1", will make cgit generate extra links for
64 each repo in the repository index (specifically, to the "summary", 64 each repo in the repository index (specifically, to the "summary",
65 "commit" and "tree" pages). Default value: "0". 65 "commit" and "tree" pages). Default value: "0".
66 66
67enable-log-filecount 67enable-log-filecount
68 Flag which, when set to "1", will make cgit print the number of 68 Flag which, when set to "1", will make cgit print the number of
69 modified files for each commit on the repository log page. Default 69 modified files for each commit on the repository log page. Default
70 value: "0". 70 value: "0".
71 71
72enable-log-linecount 72enable-log-linecount
73 Flag which, when set to "1", will make cgit print the number of added 73 Flag which, when set to "1", will make cgit print the number of added
74 and removed lines for each commit on the repository log page. Default 74 and removed lines for each commit on the repository log page. Default
75 value: "0". 75 value: "0".
76 76
77enable-stats
78 Globally enable/disable statistics for each repository. Default
79 value: "0".
80
77favicon 81favicon
78 Url used as link to a shortcut icon for cgit. If specified, it is 82 Url used as link to a shortcut icon for cgit. If specified, it is
79 suggested to use the value "/favicon.ico" since certain browsers will 83 suggested to use the value "/favicon.ico" since certain browsers will
80 ignore other values. Default value: none. 84 ignore other values. Default value: none.
81 85
82footer 86footer
83 The content of the file specified with this option will be included 87 The content of the file specified with this option will be included
84 verbatim at the bottom of all pages (i.e. it replaces the standard 88 verbatim at the bottom of all pages (i.e. it replaces the standard
85 "generated by..." message. Default value: none. 89 "generated by..." message. Default value: none.
86 90
87include 91include
88 Name of a configfile to include before the rest of the current config- 92 Name of a configfile to include before the rest of the current config-
89 file is parsed. Default value: none. 93 file is parsed. Default value: none.
90 94
91index-header 95index-header
92 The content of the file specified with this option will be included 96 The content of the file specified with this option will be included
@@ -205,32 +209,36 @@ repo.clone-url
205repo.defbranch 209repo.defbranch
206 The name of the default branch for this repository. If no such branch 210 The name of the default branch for this repository. If no such branch
207 exists in the repository, the first branch name (when sorted) is used 211 exists in the repository, the first branch name (when sorted) is used
208 as default instead. Default value: "master". 212 as default instead. Default value: "master".
209 213
210repo.desc 214repo.desc
211 The value to show as repository description. Default value: none. 215 The value to show as repository description. Default value: none.
212 216
213repo.enable-log-filecount 217repo.enable-log-filecount
214 A flag which can be used to disable the global setting 218 A flag which can be used to disable the global setting
215 `enable-log-filecount'. Default value: none. 219 `enable-log-filecount'. Default value: none.
216 220
217repo.enable-log-linecount 221repo.enable-log-linecount
218 A flag which can be used to disable the global setting 222 A flag which can be used to disable the global setting
219 `enable-log-linecount'. Default value: none. 223 `enable-log-linecount'. Default value: none.
220 224
225repo.enable-stats
226 A flag which can be used to disable the global setting
227 `enable-stats'. Default value: none.
228
221repo.name 229repo.name
222 The value to show as repository name. Default value: <repo.url>. 230 The value to show as repository name. Default value: <repo.url>.
223 231
224repo.owner 232repo.owner
225 A value used to identify the owner of the repository. Default value: 233 A value used to identify the owner of the repository. Default value:
226 none. 234 none.
227 235
228repo.path 236repo.path
229 An absolute path to the repository directory. For non-bare repositories 237 An absolute path to the repository directory. For non-bare repositories
230 this is the .git-directory. Default value: none. 238 this is the .git-directory. Default value: none.
231 239
232repo.readme 240repo.readme
233 A path (relative to <repo.path>) which specifies a file to include 241 A path (relative to <repo.path>) which specifies a file to include
234 verbatim as the "About" page for this repo. Default value: none. 242 verbatim as the "About" page for this repo. Default value: none.
235 243
236repo.snapshots 244repo.snapshots