mirror of
https://git.zx2c4.com/cgit
synced 2025-08-02 09:05:01 +02:00
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:
parent
ab2ab95f09
commit
ac70cb4795
5 changed files with 22 additions and 6 deletions
2
cgit.h
2
cgit.h
|
@ -21,6 +21,7 @@ struct repoinfo {
|
|||
char *path;
|
||||
char *desc;
|
||||
char *owner;
|
||||
int snapshots;
|
||||
};
|
||||
|
||||
struct repolist {
|
||||
|
@ -61,6 +62,7 @@ extern char *cgit_virtual_root;
|
|||
extern char *cgit_cache_root;
|
||||
|
||||
extern int cgit_nocache;
|
||||
extern int cgit_snapshots;
|
||||
extern int cgit_max_lock_attempts;
|
||||
extern int cgit_cache_root_ttl;
|
||||
extern int cgit_cache_repo_ttl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue