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>
This commit is contained in:
Lars Hjemli
2007-02-08 14:47:56 +01:00
والد ab2ab95f09
کامیت ac70cb4795
5فایلهای تغییر یافته به همراه22 افزوده شده و 6 حذف شده

5
cgitrc
مشاهده پرونده

@ -8,6 +8,10 @@
#nocache=0
## Enable/disable snapshots by default. This can be overridden per repo
#snapshots=0
## Specify a root for virtual urls. This makes cgit generate urls like
##
## http://localhost/git/repo/log/?id=master
@ -77,3 +81,4 @@
#repo.desc=the caching cgi for git
#repo.path=/pub/git/cgit
#repo.owner=Lars Hjemli
#repo.snapshots=1 # override a sitewide snapshot-setting