From 5ec6e02bd1cc0c05b7cfd0d53371e7d176daec39 Mon Sep 17 00:00:00 2001
From: Lars Hjemli
Date: Mon, 14 May 2007 23:40:33 +0200
Subject: 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>
---
 shared.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'shared.c')

diff --git a/shared.c b/shared.c
index ffecac8..072bb6d 100644
--- a/shared.c
+++ b/shared.c
@@ -137,6 +137,8 @@ void cgit_global_config_cb(const char *name, const char *value)
 		cgit_repo->snapshots = atoi(value);
 	else if (cgit_repo && !strcmp(name, "repo.module-link"))
 		cgit_repo->module_link= xstrdup(value);
+	else if (!strcmp(name, "include"))
+		cgit_read_config(value, cgit_global_config_cb);
 }
 
 void cgit_repo_config_cb(const char *name, const char *value)
-- 
cgit v1.2.3-54-g00ecf