From 50d5af3adcdd90424b70e9472af24356ed50aa9b Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 23 Aug 2009 19:36:45 +0200 Subject: Add support for --scan-path command line option This is an alias for --scan-tree (which might be deprecated in the future). Signed-off-by: Lars Hjemli --- cgit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgit.c b/cgit.c index 6ece411..a792fe4 100644 --- a/cgit.c +++ b/cgit.c @@ -547,7 +547,8 @@ static void cgit_parse_args(int argc, const char **argv) if (!strncmp(argv[i], "--ofs=", 6)) { ctx.qry.ofs = atoi(argv[i]+6); } - if (!strncmp(argv[i], "--scan-tree=", 12)) { + if (!strncmp(argv[i], "--scan-tree=", 12) || + !strncmp(argv[i], "--scan-path=", 12)) { scan++; scan_tree(argv[i] + 12); } -- cgit 1.4.1 e='backport'>backport collaborative ASCII art
about summary refs log tree commit diff homepage
Commit message (Collapse)Author
2019-01-07Fix explore image URLJune McEnroe
2019-01-07Add HOME button, ssh link, AGPL notice to exploreJune McEnroe
2019-01-06Add meta viewport to exploreJune McEnroe
2019-01-06Set background and max-width in exploreJune McEnroe
2019-01-06Swallow writes after the connection is closedJune McEnroe
It was not okay.
2019-01-06Handle KCGI_HUPJune McEnroe
I hope it's okay that I keep writing to the fwopen stream after streamWrite returns -1.
2019-01-06Install html filesJune McEnroe