mirror of
https://git.zx2c4.com/cgit
synced 2025-08-30 22:49:41 +02:00
Add 'about-filter' and 'repo.about-filter' options
These options can be used to execute a filter command on each about-page, both top-level and for each repository (repo.about-filter can be used to override the current about-filter). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
e1782fff8a
commit
537c05f138
6 changed files with 28 additions and 2 deletions
2
cgit.h
2
cgit.h
|
@ -73,6 +73,7 @@ struct cgit_repo {
|
|||
int enable_log_linecount;
|
||||
int max_stats;
|
||||
time_t mtime;
|
||||
struct cgit_filter *about_filter;
|
||||
struct cgit_filter *commit_filter;
|
||||
struct cgit_filter *source_filter;
|
||||
};
|
||||
|
@ -185,6 +186,7 @@ struct cgit_config {
|
|||
int summary_branches;
|
||||
int summary_log;
|
||||
int summary_tags;
|
||||
struct cgit_filter *about_filter;
|
||||
struct cgit_filter *commit_filter;
|
||||
struct cgit_filter *source_filter;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue