]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
snapshot: support special value 'all' to enable all formats
[ps-cgit] / shared.c
index 21ac8f4e68ea34b9ff0d95eb80612ed38404d21b..0a11e68aae4981cf9f972a0913ac2522014fe41a 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -390,6 +390,9 @@ int cgit_parse_snapshots_mask(const char *str)
        if (atoi(str))
                return 1;
 
+       if (strcmp(str, "all") == 0)
+               return INT_MAX;
+
        string_list_split(&tokens, str, ' ', -1);
        string_list_remove_empty_items(&tokens, 0);