diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-05-15 06:40:33 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-15 06:40:33 (JST) |
commit | 5ec6e02bd1cc0c05b7cfd0d53371e7d176daec39 (patch) | |
tree | 5c844c0ba53cfd2e838368ffbbd4583ac63d3608 /shared.c | |
parent | 9ecde6568a9e39c942f4c5585ffa494c5df870e4 (diff) | |
download | cgit-5ec6e02bd1cc0c05b7cfd0d53371e7d176daec39.zip cgit-5ec6e02bd1cc0c05b7cfd0d53371e7d176daec39.tar.gz |
Add include-parameter to config files
This parameter can be used to include another config-file, like
a standalone repository listing.
Suggested in a patch by Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -137,6 +137,8 @@ void cgit_global_config_cb(const char *name, const char *value) | |||
137 | cgit_repo->snapshots = atoi(value); | 137 | cgit_repo->snapshots = atoi(value); |
138 | else if (cgit_repo && !strcmp(name, "repo.module-link")) | 138 | else if (cgit_repo && !strcmp(name, "repo.module-link")) |
139 | cgit_repo->module_link= xstrdup(value); | 139 | cgit_repo->module_link= xstrdup(value); |
140 | else if (!strcmp(name, "include")) | ||
141 | cgit_read_config(value, cgit_global_config_cb); | ||
140 | } | 142 | } |
141 | 143 | ||
142 | void cgit_repo_config_cb(const char *name, const char *value) | 144 | void cgit_repo_config_cb(const char *name, const char *value) |