From ac70cb4795c90db02917db63d169b0fadfe9fb99 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Thu, 8 Feb 2007 14:47:56 +0100 Subject: 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 --- cgitrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cgitrc') diff --git a/cgitrc b/cgitrc index d45f9c2..3bae642 100644 --- a/cgitrc +++ b/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 -- cgit v1.2.3-70-g09d2