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:
5
cgitrc
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
|
||||
|
مرجع در شماره جدید
Block a user