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>
This commit is contained in:
Jakub Narebski 2007-05-15 01:55:44 +02:00 коммит произвёл Junio C Hamano
Родитель 870e0d61d3
Коммит b4b20b2164
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -98,10 +98,13 @@ our %feature = (
# 'override' => allow-override (boolean), # 'override' => allow-override (boolean),
# 'default' => [ default options...] (array reference)} # 'default' => [ default options...] (array reference)}
# #
# if feature is overridable (it means that allow-override has true value, # if feature is overridable (it means that allow-override has true value),
# then feature-sub will be called with default options as parameters; # then feature-sub will be called with default options as parameters;
# return value of feature-sub indicates if to enable specified feature # return value of feature-sub indicates if to enable specified feature
# #
# if there is no 'sub' key (no feature-sub), then feature cannot be
# overriden
#
# use gitweb_check_feature(<feature>) to check if <feature> is enabled # use gitweb_check_feature(<feature>) to check if <feature> is enabled
# Enable the 'blame' blob view, showing the last commit that modified # Enable the 'blame' blob view, showing the last commit that modified
@ -134,6 +137,7 @@ our %feature = (
# Enable text search, which will list the commits which match author, # Enable text search, which will list the commits which match author,
# committer or commit text to a given string. Enabled by default. # committer or commit text to a given string. Enabled by default.
# Project specific override is not supported.
'search' => { 'search' => {
'override' => 0, 'override' => 0,
'default' => [1]}, 'default' => [1]},