summaryrefslogtreecommitdiffabout
path: root/cgitrc
Unidiff
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc
index 34ea116..796a62c 100644
--- a/cgitrc
+++ b/cgitrc
@@ -28,32 +28,39 @@
28## Enable/disable display of HEAD shortlog in summary view. Set it to maximum 28## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
29## number of commits that should be displayed 29## number of commits that should be displayed
30#summary-log=0 30#summary-log=0
31 31
32 32
33## The "Idle" column on the repository index page can read a timestamp 33## The "Idle" column on the repository index page can read a timestamp
34## from the specified agefile (if this file cannot be found, the mtime 34## from the specified agefile (if this file cannot be found, the mtime
35## of HEAD is used). 35## of HEAD is used).
36## The cgit repo on hjemli.net uses the the following command in it's 36## The cgit repo on hjemli.net uses the the following command in it's
37## post-receive hook to update the age-file: 37## post-receive hook to update the age-file:
38## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ 38## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \
39## --count=1 > $GIT_DIR/info/web/last-modifie 39## --count=1 > $GIT_DIR/info/web/last-modifie
40## 40##
41#agefile=info/web/last-modified 41#agefile=info/web/last-modified
42 42
43 43
44## Git detects renames, but with a limit on the number of files to
45## consider. This option can be used to specify another limit (or -1 to
46## use the default limit).
47##
48#renamelimit=-1
49
50
44## Specify a root for virtual urls. This makes cgit generate urls like 51## Specify a root for virtual urls. This makes cgit generate urls like
45## 52##
46## http://localhost/git/repo/log/?h=branch 53## http://localhost/git/repo/log/?h=branch
47## 54##
48## instead of 55## instead of
49## 56##
50## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch 57## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch
51## 58##
52## For this to work with apache, a rewrite rule must be added to httpd.conf, 59## For this to work with apache, a rewrite rule must be added to httpd.conf,
53## possibly looking something like this: 60## possibly looking something like this:
54## 61##
55## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] 62## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA]
56## 63##
57## For this to work with lighttpd, the rewrite rule should look more like this: 64## For this to work with lighttpd, the rewrite rule should look more like this:
58## 65##
59## url.rewrite = ( 66## url.rewrite = (