diff options
author | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 06:00:28 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 17:22:58 (JST) |
commit | 39398545787179bc8075d64a443f9da3845c4f67 (patch) | |
tree | f8710ddde4d91a633d97d9c88c9d21b0abbb8fcf | |
parent | e7af002d5c405c82652f739d08ced3908d1f57e7 (diff) | |
download | cgit-39398545787179bc8075d64a443f9da3845c4f67.zip cgit-39398545787179bc8075d64a443f9da3845c4f67.tar.gz |
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>
-rw-r--r-- | cgit.c | 2 | ||||
-rw-r--r-- | cgitrc.5.txt | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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")) |
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 4d009f9..e99c9f7 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -315,6 +315,9 @@ repo.snapshots:: | |||
315 | A mask of allowed snapshot-formats for this repo, restricted by the | 315 | A mask of allowed snapshot-formats for this repo, restricted by the |
316 | "snapshots" global setting. Default value: <snapshots>. | 316 | "snapshots" global setting. Default value: <snapshots>. |
317 | 317 | ||
318 | repo.section:: | ||
319 | Override the current section for this repository. Default value: none. | ||
320 | |||
318 | repo.source-filter:: | 321 | repo.source-filter:: |
319 | Override the default source-filter. Default value: <source-filter>. | 322 | Override the default source-filter. Default value: <source-filter>. |
320 | 323 | ||