about summary refs log tree commit diff
path: root/cgit.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2010-09-19 18:46:17 +0200
committerLars Hjemli <hjemli@gmail.com>2010-09-19 18:46:17 +0200
commit536c7a1eb201b44b9266babe087cb6f2b75e4a7f (patch)
tree899ecd47f770b1909d107b0f1c777e8b032b25fc /cgit.c
parentMerge branch 'lh/readme' (diff)
parentAdd support for 'section-from-path' option (diff)
downloadcgit-pink-536c7a1eb201b44b9266babe087cb6f2b75e4a7f.tar.gz
cgit-pink-536c7a1eb201b44b9266babe087cb6f2b75e4a7f.zip
Merge branch 'lh/section-from-path'
Conflicts:
	scan-tree.c
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 04cef23..e1d2216 100644
--- a/cgit.c
+++ b/cgit.c
@@ -193,6 +193,8 @@ void config_cb(const char *name, const char *value)
 				      ctx.cfg.project_list, repo_config);
 		else
 			scan_tree(expand_macros(value), repo_config);
+	else if (!strcmp(name, "section-from-path"))
+		ctx.cfg.section_from_path = atoi(value);
 	else if (!strcmp(name, "source-filter"))
 		ctx.cfg.source_filter = new_filter(value, 1);
 	else if (!strcmp(name, "summary-log"))