From 91f833480b02a56c9e14b471d48c0ff0c1e2c323 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:37:07 -0700 Subject: Use the parser's INT_MAX for every snapshot format The snapshots parser already answers all with INT_MAX, so cgit.c needed no value of its own for the same mask. --- source/cgit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source') diff --git a/source/cgit.c b/source/cgit.c index d6fc0bc..f81af79 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -42,10 +42,6 @@ // every row it skips, so this bounds the work an offset alone can buy. #define MAX_QUERY_OFFSET 100000 -// cgit knows fewer than eight archive formats, so this stands in for every bit -// a snapshots mask can carry. -#define ALL_SNAPSHOT_FORMATS 0xFF - // The first branch found is the fallback, so a repository whose default branch // does not exist still has something to show. struct refmatch { @@ -308,7 +304,7 @@ static void parse_args(int argc, const char **argv) // A repository's snapshots setting is masked with the // global one, and cgitrc has not been read here, so an // empty mask would discard what the repository set. - ctx.cfg.snapshots = ALL_SNAPSHOT_FORMATS; + ctx.cfg.snapshots = INT_MAX; scanned++; scan_tree(arg); } -- cgit