git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC/PATCH] Changed gitweb.remote_heads config key name to gitweb.remoteHeads.

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Jul 7, 2011, 18:02 UTC
Message-ID
<1310061739-4441-1-git-send-email-marcnarc@xiplink.com>
Git doesn't accept config key names with underscore characters.
Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
---

Came across this today. The patch is RFC because I have not verified if it's complete or if gitweb even respects the setting.

 gitweb/gitweb.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 81dacf2..edbb080 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -524,9 +524,9 @@ our %feature = (
 	# $feature{'remote_heads'}{'default'} = [1];
 	# To have project specific config enable override in $GITWEB_CONFIG
 	# $feature{'remote_heads'}{'override'} = 1;
-	# and in project config gitweb.remote_heads = 0|1;
+	# and in project config gitweb.remoteHeads = 0|1;
 	'remote_heads' => {
-		'sub' => sub { feature_bool('remote_heads', @_) },
+		'sub' => sub { feature_bool('remoteHeads', @_) },
 		'override' => 0,
 		'default' => [0]},
 );
-- 
1.7.6
Next: Jakub Narebski
Message 1 of 3 in “Changed gitweb.remote_heads config key name to gitweb.remoteHeads.”
  1. Changed gitweb.remote_heads config key name to gitweb.remoteHeads.Marc Branchaud, Jul 7, 2011
  2. Jakub NarebskiJul 7, 2011
  3. Jakub NarebskiJul 7, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.