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>
这个提交包含在:
4
cgit.c
4
cgit.c
@ -146,6 +146,10 @@ 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.commit-filter"))
|
||||
ctx.repo->commit_filter = new_filter(value, 0);
|
||||
else if (ctx.repo && !strcmp(name, "repo.source-filter"))
|
||||
ctx.repo->source_filter = new_filter(value, 1);
|
||||
else if (ctx.repo && !strcmp(name, "repo.readme") && value != NULL) {
|
||||
if (*value == '/')
|
||||
ctx.repo->readme = xstrdup(value);
|
||||
|
在新工单中引用
屏蔽一个用户