aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorLars Hjemli2009-08-23 23:00:28 +0200
committerLars Hjemli2009-08-24 10:22:58 +0200
commit39398545787179bc8075d64a443f9da3845c4f67 (patch)
treef8710ddde4d91a633d97d9c88c9d21b0abbb8fcf /cgit.c
parente7af002d5c405c82652f739d08ced3908d1f57e7 (diff)
downloadcgit-39398545787179bc8075d64a443f9da3845c4f67.tar.gz
cgit-39398545787179bc8075d64a443f9da3845c4f67.tar.bz2
cgit-39398545787179bc8075d64a443f9da3845c4f67.zip
Add config option 'repo.section'
This option can be used to specify the section name for the current repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 013a0fe..7264b8e 100644
--- a/cgit.c
+++ b/cgit.c
@@ -169,6 +169,8 @@ void config_cb(const char *name, const char *value)
169 ctx.repo->max_stats = cgit_find_stats_period(value, NULL); 169 ctx.repo->max_stats = cgit_find_stats_period(value, NULL);
170 else if (ctx.repo && !strcmp(name, "repo.module-link")) 170 else if (ctx.repo && !strcmp(name, "repo.module-link"))
171 ctx.repo->module_link= xstrdup(value); 171 ctx.repo->module_link= xstrdup(value);
172 else if (ctx.repo && !strcmp(name, "repo.section"))
173 ctx.repo->section = xstrdup(value);
172 else if (ctx.repo && !strcmp(name, "repo.about-filter")) 174 else if (ctx.repo && !strcmp(name, "repo.about-filter"))
173 ctx.repo->about_filter = new_filter(value, 0); 175 ctx.repo->about_filter = new_filter(value, 0);
174 else if (ctx.repo && !strcmp(name, "repo.commit-filter")) 176 else if (ctx.repo && !strcmp(name, "repo.commit-filter"))