diff options
-rw-r--r-- | cgit.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -885,14 +885,16 @@ static void cgit_parse_args(int argc, const char **argv) | |||
885 | ctx.qry.ofs = atoi(argv[i] + 6); | 885 | ctx.qry.ofs = atoi(argv[i] + 6); |
886 | } else if (!prefixcmp(argv[i], "--scan-tree=") || | 886 | } else if (!prefixcmp(argv[i], "--scan-tree=") || |
887 | !prefixcmp(argv[i], "--scan-path=")) { | 887 | !prefixcmp(argv[i], "--scan-path=")) { |
888 | /* HACK: the global snapshot bitmask defines the | 888 | /* |
889 | * set of allowed snapshot formats, but the config | 889 | * HACK: The global snapshot bit mask defines the set |
890 | * file hasn't been parsed yet so the mask is | 890 | * of allowed snapshot formats, but the config file |
891 | * currently 0. By setting all bits high before | 891 | * hasn't been parsed yet so the mask is currently 0. |
892 | * scanning we make sure that any in-repo cgitrc | 892 | * By setting all bits high before scanning we make |
893 | * snapshot setting is respected by scan_tree(). | 893 | * sure that any in-repo cgitrc snapshot setting is |
894 | * BTW: we assume that there'll never be more than | 894 | * respected by scan_tree(). |
895 | * 255 different snapshot formats supported by cgit... | 895 | * |
896 | * NOTE: We assume that there aren't more than 8 | ||
897 | * different snapshot formats supported by cgit... | ||
896 | */ | 898 | */ |
897 | ctx.cfg.snapshots = 0xFF; | 899 | ctx.cfg.snapshots = 0xFF; |
898 | scan++; | 900 | scan++; |