diff options
| author | Lars Hjemli <[email protected]> | 2009-08-23 21:00:28 +0000 |
|---|---|---|
| committer | Lars Hjemli <[email protected]> | 2009-08-24 08:22:58 +0000 |
| commit | 39398545787179bc8075d64a443f9da3845c4f67 (patch) | |
| tree | f8710ddde4d91a633d97d9c88c9d21b0abbb8fcf /cgit.c | |
| parent | Introduce 'section' as canonical spelling for 'repo.group' (diff) | |
| download | cgit-39398545787179bc8075d64a443f9da3845c4f67.tar.gz 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 <[email protected]>
Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -169,6 +169,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.section")) + ctx.repo->section = 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")) |
