diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-02-08 22:47:56 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-02-08 22:47:56 (JST) |
commit | ac70cb4795c90db02917db63d169b0fadfe9fb99 (patch) | |
tree | bf7a5c4c8c2789cda2dd511f0a180df279a0b389 /cgit.h | |
parent | ab2ab95f09994560f62fd631f07d3b6e3577aa6e (diff) | |
download | cgit-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 'cgit.h')
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,6 +21,7 @@ struct repoinfo { | |||
21 | char *path; | 21 | char *path; |
22 | char *desc; | 22 | char *desc; |
23 | char *owner; | 23 | char *owner; |
24 | int snapshots; | ||
24 | }; | 25 | }; |
25 | 26 | ||
26 | struct repolist { | 27 | struct repolist { |
@@ -61,6 +62,7 @@ extern char *cgit_virtual_root; | |||
61 | extern char *cgit_cache_root; | 62 | extern char *cgit_cache_root; |
62 | 63 | ||
63 | extern int cgit_nocache; | 64 | extern int cgit_nocache; |
65 | extern int cgit_snapshots; | ||
64 | extern int cgit_max_lock_attempts; | 66 | extern int cgit_max_lock_attempts; |
65 | extern int cgit_cache_root_ttl; | 67 | extern int cgit_cache_root_ttl; |
66 | extern int cgit_cache_repo_ttl; | 68 | extern int cgit_cache_repo_ttl; |