about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2009-08-11 10:09:06 +0200
committerLars Hjemli <hjemli@gmail.com>2009-08-24 10:22:57 +0200
commit6f3bf1ae1eb1d4114a1df0194b2236665a13bdac (patch)
tree29dd35a343ecb56844c7b8acffa6e89f5c153ee4
parentscan-tree: detect non-bare repository and stop scanning early (diff)
downloadcgit-pink-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.tar.gz
cgit-pink-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.zip
cgit.c: add support for cgitrc option 'repo.scan'
When specified, the specified path will be scanned for repositories.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index b0e1c44..97f5e08 100644
--- a/cgit.c
+++ b/cgit.c
@@ -136,6 +136,8 @@ void config_cb(const char *name, const char *value)
 		add_mimetype(name + 9, value);
 	else if (!strcmp(name, "repo.group"))
 		ctx.cfg.repo_group = xstrdup(value);
+	else if (!strcmp(name, "repo.scan"))
+		scan_tree(value);
 	else if (!strcmp(name, "repo.url"))
 		ctx.repo = cgit_add_repo(value);
 	else if (!strcmp(name, "repo.name"))
>Fixed coding styleFeiko Joosten Fixed the coding style based on @destruc7i0n's feedback. 2020-07-17Changed tail to make use of watch file.Feiko Joosten Fixed an issue where the log file required a manual refresh before the new lines were detected. 2020-05-23Fixed user mention detectionZachery Notz 2020-05-23Improved regex so that TELLRAW templates can use variables more than onceZachery Notz 2020-04-29backwards compat with new optiondestruc7i0n 2020-04-29add the ability to handle webhook messagesdestruc7i0n 2020-04-19Fixed tellraw components not being encoded properlyBen Landin 2020-02-11Update README.mddestruc7i0n 2020-02-05Precedencedestruc7i0n 2020-02-05Allow specification of the channel name rather than iddestruc7i0n 2020-02-05Some more cleanupdestruc7i0n 2020-02-05More config handlingdestruc7i0n 2020-02-04Update typesdestruc7i0n 2020-02-04Docs updatesdestruc7i0n 2020-02-04Code cleanupdestruc7i0n 2020-02-04Refactor and rebuild to TypeScriptdestruc7i0n 2019-02-11Local file supportdestruc7i0n 2018-11-11Let's make this usable again!destruc7i0n 2018-02-23Allow configurable discord formatArcensoth 2018-02-23Revert example tellraw format to mimic the originalArcensoth 2018-02-23Update readme with new tellraw config optionArcensoth 2018-02-23Allow configurable tellraw formatArcensoth 2018-02-23Allow config file to be passed as a parameterArcensoth