mirror of
https://git.zx2c4.com/cgit
synced 2025-07-17 17:42:06 +02:00
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>
This commit is contained in:
parent
0046637692
commit
50d5af3adc
1 changed files with 2 additions and 1 deletions
3
cgit.c
3
cgit.c
|
@ -547,7 +547,8 @@ static void cgit_parse_args(int argc, const char **argv)
|
||||||
if (!strncmp(argv[i], "--ofs=", 6)) {
|
if (!strncmp(argv[i], "--ofs=", 6)) {
|
||||||
ctx.qry.ofs = atoi(argv[i]+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++;
|
||||||
scan_tree(argv[i] + 12);
|
scan_tree(argv[i] + 12);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue