mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
gitweb: Improve comments about gitweb features configuration
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
73c9083f52
commit
17848fc67c
1 changed files with 16 additions and 9 deletions
|
@ -67,9 +67,16 @@
|
|||
# You define site-wide feature defaults here; override them with
|
||||
# $GITWEB_CONFIG as necessary.
|
||||
our %feature = (
|
||||
# feature => {'sub' => feature-sub, 'override' => allow-override, 'default' => [ default options...]
|
||||
# if feature is overridable, feature-sub will be called with default options;
|
||||
# return value indicates if to enable specified feature
|
||||
# feature => {
|
||||
# 'sub' => feature-sub (subroutine),
|
||||
# 'override' => allow-override (boolean),
|
||||
# 'default' => [ default options...] (array reference)}
|
||||
#
|
||||
# if feature is overridable (it means that allow-override has true value,
|
||||
# then feature-sub will be called with default options as parameters;
|
||||
# return value of feature-sub indicates if to enable specified feature
|
||||
#
|
||||
# use gitweb_check_feature(<feature>) to check if <feature> is enabled
|
||||
|
||||
'blame' => {
|
||||
'sub' => \&feature_blame,
|
||||
|
|
Loading…
Reference in a new issue