# [PATCH] gitweb: Add a few comments about %feature hash

2 messages from 2007-05-14 to 2007-05-15. Participants: Jakub Narebski, Junio C Hamano.
Thread: https://gitlist.dev/t/8158

## Jakub Narebski, 2007-05-14 23:55

Subject: [PATCH] gitweb: Add a few comments about %feature hash
Message-ID: <11791869442413-git-send-email-jnareb@gmail.com>
URL: https://gitlist.dev/e/11791869442413-git-send-email-jnareb%40gmail.com

```
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 gitweb/gitweb.perl |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c2eeca9..a13043d 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -102,10 +102,13 @@ our %feature = (
 	# 	'override' => allow-override (boolean),
 	# 	'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;
 	# 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
 
 	# Enable the 'blame' blob view, showing the last commit that modified
@@ -138,6 +141,7 @@ our %feature = (
 
 	# Enable text search, which will list the commits which match author,
 	# committer or commit text to a given string.  Enabled by default.
+	# Project specific override is not supported.
 	'search' => {
 		'override' => 0,
 		'default' => [1]},
-- 
1.5.1.4

```

## Junio C Hamano, 2007-05-15 00:26

Subject: Re: [PATCH] gitweb: Add a few comments about %feature hash
Message-ID: <7vr6pjkk39.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vr6pjkk39.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <11791869442413-git-send-email-jnareb@gmail.com>

```
Thanks.

```
