From d809eca4d0f3c601b1b78731365b5e4fc68892b0 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 1 Sep 2017 00:27:57 -0700 Subject: [PATCH] gitweb_config.perl: include search override option comments It's possible to override grep, pickaxe and regexp on a per-repository basis. Add comment lines showing how to do this. Signed-off-by: Kyle J. McKay --- gitweb/gitweb_config.perl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gitweb/gitweb_config.perl b/gitweb/gitweb_config.perl index effd5cb..7e299ae 100644 --- a/gitweb/gitweb_config.perl +++ b/gitweb/gitweb_config.perl @@ -45,6 +45,7 @@ $feature{'snapshot'}{'default'} = ['tgz', 'zip']; # Change this from 1 to 0 to disable all searching # (it's enabled by default so commenting this out will still leave it enabled) +# Note that project-specific override is NOT supported for this option! $feature{'search'}{'default'}=[1]; # Change this from 0 to 1 to enable git regular expression searches @@ -52,16 +53,25 @@ $feature{'search'}{'default'}=[1]; # (they're enabled by default so commenting this out will leave them enabled) $feature{'regexp'}{'default'}=[0]; +# Enable override to control regexp on a per-repository basis with config gitweb.regexp= +#$feature{'regexp'}{'override'} = 1; + # Change this from 0 to 1 to enable grep searches (they can be CPU intensive) # (it's enabled by default so commenting this out will leave it enabled) # Note that it will be automatically disabled if 'search' is disabled. $feature{'grep'}{'default'}=[0]; +# Enable override to control grep on a per-repository basis with config gitweb.grep= +#$feature{'grep'}{'override'} = 1; + # Change this from 0 to 1 to enable pickaxe searches (they can be CPU intensive) # (it's enabled by default so commenting this out will leave it enabled) # Note that it will be automatically disabled if 'search' is disabled. $feature{'pickaxe'}{'default'}=[0]; +# Enable override to control pickaxe on a per-repository basis with config gitweb.pickaxe= +#$feature{'pickaxe'}{'override'} = 1; + # Enable this to highlight sources if highlight is available #$feature{'highlight'}{'default'} = [1]; -- 2.11.4.GIT