all repos — cgit @ 39398545787179bc8075d64a443f9da3845c4f67

a hyperfast web frontend for git written in c

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>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 23:00:28 +0200
commit

39398545787179bc8075d64a443f9da3845c4f67

parent

e7af002d5c405c82652f739d08ced3908d1f57e7

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M cgit.ccgit.c

@@ -169,6 +169,8 @@ else if (ctx.repo && !strcmp(name, "repo.max-stats"))

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"))
M cgitrc.5.txtcgitrc.5.txt

@@ -315,6 +315,9 @@ repo.snapshots::

A mask of allowed snapshot-formats for this repo, restricted by the "snapshots" global setting. Default value: <snapshots>. +repo.section:: + Override the current section for this repository. Default value: none. + repo.source-filter:: Override the default source-filter. Default value: <source-filter>.