@matheusbsbs / matheus-bagliano / commits / b4b20b2164
Fork 0

gitweb: Add a few comments about %feature hash

Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed May 15, 2007 at 01:55 UTC b4b20b2164e433fead84beb526b713a889fc31df
1 file changed +5 -1
gitweb/gitweb.perl
+5 -1
@@ -98,10 +98,13 @@ our %feature = (
98 # 'override' => allow-override (boolean),
99 # 'default' => [ default options...] (array reference)}
100 #
101 - # if feature is overridable (it means that allow-override has true value,
101 + # if feature is overridable (it means that allow-override has true value),
102 # then feature-sub will be called with default options as parameters;
103 # return value of feature-sub indicates if to enable specified feature
104 #
105 + # if there is no 'sub' key (no feature-sub), then feature cannot be
106 + # overriden
107 + #
108 # use gitweb_check_feature(<feature>) to check if <feature> is enabled
109
110 # Enable the 'blame' blob view, showing the last commit that modified
@@ -134,6 +137,7 @@ our %feature = (
137
138 # Enable text search, which will list the commits which match author,
139 # committer or commit text to a given string. Enabled by default.
140 + # Project specific override is not supported.
141 'search' => {
142 'override' => 0,
143 'default' => [1]},