gitweb: Make globally configured features overridable per-repository

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa 2023-04-08 10:29:29 +03:00 committed by James Valleroy
parent 53a5394942
commit cd2727c98b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -33,15 +33,19 @@ $feature{'pathinfo'}{'default'} = [1];
# enable git blame
$feature{'blame'}{'default'} = [1];
$feature{'blame'}{'override'} = 1;
# enable pickaxe search
$feature{'pickaxe'}{'default'} = [1];
$feature{'pickaxe'}{'override'} = 1;
# enable syntax highlighting
$feature{'highlight'}{'default'} = [1];
$feature{'highlight'}{'override'} = 1;
# disable snapshots
$feature{'snapshot'}{'default'} = [];
$feature{'snapshot'}{'override'} = 1;
# do not recursively scan for Git repositories
our $project_maxdepth = 1;