From: Lars Hjemli Date: Sun, 23 Aug 2009 17:36:45 +0000 (+0200) Subject: Add support for --scan-path command line option X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/50d5af3adcdd90424b70e9472af24356ed50aa9b 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 --- 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); }