aboutsummaryrefslogtreecommitdiffstats
path: root/cgitrc
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2007-02-08 22:47:56 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2007-02-08 22:47:56 (JST)
commitac70cb4795c90db02917db63d169b0fadfe9fb99 (patch)
treebf7a5c4c8c2789cda2dd511f0a180df279a0b389 /cgitrc
parentab2ab95f09994560f62fd631f07d3b6e3577aa6e (diff)
downloadcgit-ac70cb4795c90db02917db63d169b0fadfe9fb99.zip
cgit-ac70cb4795c90db02917db63d169b0fadfe9fb99.tar.gz
Make snapshot feature configurable
Snapshots can now be enabled/disabled by default for all repositories in cgitrc with param "snapshots". Additionally, any repo can override the default setting with param "repo.snapshots". By default, no snapshotting is enabled. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgitrc')
-rw-r--r--cgitrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc
index d45f9c2..3bae642 100644
--- a/cgitrc
+++ b/cgitrc
@@ -8,6 +8,10 @@
8#nocache=0 8#nocache=0
9 9
10 10
11## Enable/disable snapshots by default. This can be overridden per repo
12#snapshots=0
13
14
11## Specify a root for virtual urls. This makes cgit generate urls like 15## Specify a root for virtual urls. This makes cgit generate urls like
12## 16##
13## http://localhost/git/repo/log/?id=master 17## http://localhost/git/repo/log/?id=master
@@ -77,3 +81,4 @@
77#repo.desc=the caching cgi for git 81#repo.desc=the caching cgi for git
78#repo.path=/pub/git/cgit 82#repo.path=/pub/git/cgit
79#repo.owner=Lars Hjemli 83#repo.owner=Lars Hjemli
84#repo.snapshots=1 # override a sitewide snapshot-setting