Diff options
Diffstat (limited to 'source/cgit.c')
| -rw-r--r-- | source/cgit.c | 6 |
1 file changed, 1 insertion, 5 deletions
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); } |
