about summary refs log tree commit diff
path: root/cgit.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2009-08-09 13:46:34 +0200
committerLars Hjemli <hjemli@gmail.com>2009-08-09 13:46:34 +0200
commitdb8b8cb9467625cb8d9ecb67863aa67590e59cc0 (patch)
treed27644fc1b98ec6365e74f3ba40c19f78f8a287f /cgit.c
parentMerge branch 'lh/plugins' (diff)
parentAdd 'about-filter' and 'repo.about-filter' options (diff)
downloadcgit-pink-db8b8cb9467625cb8d9ecb67863aa67590e59cc0.tar.gz
cgit-pink-db8b8cb9467625cb8d9ecb67863aa67590e59cc0.zip
Merge branch 'lh/about'
Conflicts:
	cgit.h
Diffstat (limited to '')
-rw-r--r--cgit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index dbec196..7b228af 100644
--- a/cgit.c
+++ b/cgit.c
@@ -100,6 +100,8 @@ void config_cb(const char *name, const char *value)
 		ctx.cfg.cache_static_ttl = atoi(value);
 	else if (!strcmp(name, "cache-dynamic-ttl"))
 		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"))
 		ctx.cfg.commit_filter = new_filter(value, 0);
 	else if (!strcmp(name, "embedded"))
@@ -158,6 +160,8 @@ void config_cb(const char *name, const char *value)
 		ctx.repo->max_stats = cgit_find_stats_period(value, NULL);
 	else if (ctx.repo && !strcmp(name, "repo.module-link"))
 		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"))
 		ctx.repo->commit_filter = new_filter(value, 0);
 	else if (ctx.repo && !strcmp(name, "repo.source-filter"))