]> gitweb.ps.run Git - ps-cgit/commitdiff
Add support for --scan-path command line option
authorLars Hjemli <hjemli@gmail.com>
Sun, 23 Aug 2009 17:36:45 +0000 (19:36 +0200)
committerLars Hjemli <hjemli@gmail.com>
Mon, 24 Aug 2009 08:22:58 +0000 (10:22 +0200)
This is an alias for --scan-tree (which might be deprecated in the
future).

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c

diff --git a/cgit.c b/cgit.c
index 6ece4116460a171eb7597c00cccf48cb073e816b..a792fe46eaf73d842a16dbca127ddbe6b43a96f0 100644 (file)
--- 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);
                }