diff options
author | Lars Hjemli | 2009-08-23 19:36:45 +0200 |
---|---|---|
committer | Lars Hjemli | 2009-08-24 10:22:58 +0200 |
commit | 50d5af3adcdd90424b70e9472af24356ed50aa9b (patch) | |
tree | 758484a13b8226f64da1e7bde04bb5333beb1e0b /cgit.c | |
parent | 00466376922e2f7db02b3c335d46af5eb8991c49 (diff) | |
download | cgit-50d5af3adcdd90424b70e9472af24356ed50aa9b.tar.gz cgit-50d5af3adcdd90424b70e9472af24356ed50aa9b.tar.bz2 cgit-50d5af3adcdd90424b70e9472af24356ed50aa9b.zip |
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 <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -547,7 +547,8 @@ static void cgit_parse_args(int argc, const char **argv) | |||
547 | if (!strncmp(argv[i], "--ofs=", 6)) { | 547 | if (!strncmp(argv[i], "--ofs=", 6)) { |
548 | ctx.qry.ofs = atoi(argv[i]+6); | 548 | ctx.qry.ofs = atoi(argv[i]+6); |
549 | } | 549 | } |
550 | if (!strncmp(argv[i], "--scan-tree=", 12)) { | 550 | if (!strncmp(argv[i], "--scan-tree=", 12) || |
551 | !strncmp(argv[i], "--scan-path=", 12)) { | ||
551 | scan++; | 552 | scan++; |
552 | scan_tree(argv[i] + 12); | 553 | scan_tree(argv[i] + 12); |
553 | } | 554 | } |