author | Lars Hjemli <hjemli@gmail.com> | 2009-08-09 11:27:21 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-09 11:41:54 (UTC) |
commit | 537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4 (patch) (side-by-side diff) | |
tree | 73b1d25a96dd171c5503fae1fefc6a27a7d58683 /cgit.c | |
parent | e1782fff8a78b7f265432603351281ad2988bb40 (diff) | |
download | cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.zip cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar.gz cgit-537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4.tar.bz2 |
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>
-rw-r--r-- | cgit.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -92,2 +92,4 @@ void config_cb(const char *name, const char *value) ctx.cfg.cache_dynamic_ttl = atoi(value); + else if (!strcmp(name, "about-filter")) + ctx.cfg.about_filter = new_filter(value, 0); else if (!strcmp(name, "commit-filter")) @@ -148,2 +150,4 @@ void config_cb(const char *name, const char *value) ctx.repo->module_link= xstrdup(value); + else if (ctx.repo && !strcmp(name, "repo.about-filter")) + ctx.repo->about_filter = new_filter(value, 0); else if (ctx.repo && !strcmp(name, "repo.commit-filter")) |