From 98a852aadbecde4c0006ddb2c7d9af53914f7591 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 27 Jun 2021 13:50:37 -0700 Subject: [PATCH] gitweb_config.perl: add a few extra "our" declarations It's most convenient to be able to load the "gitweb_config.perl" configuration outside of gitweb.cgi. Make that easier to accomplish by adding a couple of "our" declarations for the two hashes (feature and html_cache_actions) that have values set. This makes it clear what's supposed to happen when those two hashes have items set in them and makes it simpler to "use" the gitweb_config.perl file from a location outside gitweb.cgi. Signed-off-by: Kyle J. McKay --- gitweb/gitweb_config.perl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gitweb/gitweb_config.perl b/gitweb/gitweb_config.perl index 1a7a600..c2ae41e 100644 --- a/gitweb/gitweb_config.perl +++ b/gitweb/gitweb_config.perl @@ -38,6 +38,11 @@ BEGIN { ## see git.git/gitweb/gitweb.perl file beginning (git.git/gitweb/README ## may miss some custom patches, in theory). +# make sure these are available to make this config file "use"able outside +# gitweb.cgi -- everything else in this file already has an explicit "our". +our %feature; +our %html_cache_actions; + # rename detection options for git-diff and git-diff-tree (default is '-M') our @diff_opts = ('-B', '-C'); -- 2.11.4.GIT