about summary refs log tree commit diff
path: root/shared.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2009-08-09 13:22:00 +0200
committerLars Hjemli <hjemli@gmail.com>2009-08-09 13:22:00 +0200
commite976df27952ca1e450c1c3d420532ac9f5e3036b (patch)
tree2634538f3144c935d1579315d4de289e6c890f19 /shared.c
parentui-commit: add support for 'commit-filter' option (diff)
downloadcgit-pink-e976df27952ca1e450c1c3d420532ac9f5e3036b.tar.gz
cgit-pink-e976df27952ca1e450c1c3d420532ac9f5e3036b.zip
Add support for repo.commit-filter and repo.source-filter
These options can be used to override the default commit- and source-
filter settings per repository.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 288cfa2..783604b 100644
--- a/shared.c
+++ b/shared.c
@@ -62,6 +62,8 @@ struct cgit_repo *cgit_add_repo(const char *url)
 	ret->module_link = ctx.cfg.module_link;
 	ret->readme = NULL;
 	ret->mtime = -1;
+	ret->commit_filter = ctx.cfg.commit_filter;
+	ret->source_filter = ctx.cfg.source_filter;
 	return ret;
 }