From 30a378b571c9f826d37c913b32b363f54a8997f4 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 7 Jun 2018 22:01:50 +0200 Subject: snapshot: support special value 'all' to enable all formats Signed-off-by: Christian Hesse Reviewed-by: John Keeping --- shared.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared.c') diff --git a/shared.c b/shared.c index 21ac8f4..0a11e68 100644 --- 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); -- cgit v1.2.3-24-g4f1b