diff options
author | Lars Hjemli | 2007-05-18 13:55:52 +0200 |
---|---|---|
committer | Lars Hjemli | 2007-05-18 13:55:52 +0200 |
commit | e189344a7dfe6fa1b07434d5170e6441dcbaf788 (patch) | |
tree | f1500b97f95a710dba27469510114388be435d01 /cgit.h | |
parent | c1ad6cb77889880ad0189a689840fbfa6e5cbc80 (diff) | |
download | cgit-e189344a7dfe6fa1b07434d5170e6441dcbaf788.tar.gz cgit-e189344a7dfe6fa1b07434d5170e6441dcbaf788.tar.bz2 cgit-e189344a7dfe6fa1b07434d5170e6441dcbaf788.zip |
Add knobs to enable/disable files/lines changed in log view
These columns can cause lots of IO on the server, so add settings to
explicitly enable them. Also, add per repo settings to optionally disable
the columns if sitewide enabled.
While at it, do not allow repo.snapshot to enable snapshots if the global
setting is disabled.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -38,6 +38,8 @@ struct repoinfo { | |||
38 | char *defbranch; | 38 | char *defbranch; |
39 | char *module_link; | 39 | char *module_link; |
40 | int snapshots; | 40 | int snapshots; |
41 | int enable_log_filecount; | ||
42 | int enable_log_linecount; | ||
41 | }; | 43 | }; |
42 | 44 | ||
43 | struct repolist { | 45 | struct repolist { |
@@ -81,6 +83,8 @@ extern char *cgit_cache_root; | |||
81 | 83 | ||
82 | extern int cgit_nocache; | 84 | extern int cgit_nocache; |
83 | extern int cgit_snapshots; | 85 | extern int cgit_snapshots; |
86 | extern int cgit_enable_log_filecount; | ||
87 | extern int cgit_enable_log_linecount; | ||
84 | extern int cgit_max_lock_attempts; | 88 | extern int cgit_max_lock_attempts; |
85 | extern int cgit_cache_root_ttl; | 89 | extern int cgit_cache_root_ttl; |
86 | extern int cgit_cache_repo_ttl; | 90 | extern int cgit_cache_repo_ttl; |