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

[PATCHv5 2/3] gitweb: update INSTALL regarding specific snapshot settings

From
Mark A Rada <marada@uwaterloo.ca>
Date
Aug 6, 2009, 04:25 UTC
Message-ID
<E3A7B101-5DC2-421D-8EA3-4FA603DF2595@uwaterloo.ca>
Too much? Too little?

-- Mark A Rada (ferrous26) marada@uwaterloo.ca

--->8---
From: Mark Rada <marada@uwaterloo.ca>
Date: Wed, 5 Aug 2009 21:20:16 -0400
Subject: [PATCH 2/3] gitweb: update INSTALL regarding specific  
snapshot settings

This includes instructions on how to disable a snapshot format and how add options to a snapshot format (like setting the compression level).

Signed-off-by: Mark Rada <marada@uwaterloo.ca>
---
  gitweb/INSTALL |    9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/gitweb/INSTALL b/gitweb/INSTALL
index 18c9ce3..3d267da 100644
--- a/gitweb/INSTALL
+++ b/gitweb/INSTALL
@@ -123,6 +123,15 @@ GITWEB_CONFIG file:
  	$feature{'snapshot'}{'default'} = ['zip', 'tgz'];
  	$feature{'snapshot'}{'override'} = 1;

+If you allow overriding for the snapshot feature, you can specify which
+snapshot formats are globally disabled. You can also add any command  
line
+options you want (such as setting the compression level). For instance,
+you can disable Zip compressed snapshots and set GZip to run at level  
6 by
+adding the following lines to your $GITWEB_CONFIG:
+
+	$known_snapshot_formats{'zip'}{'disabled'} = 1;
+	$known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];
+

  Gitweb repositories
  -------------------
-- 
1.6.4
Message 1 of 1 in “[PATCHv5 2/3] gitweb: update INSTALL regarding specific snapshot settings”
  1. Mark A RadaAug 6, 2009

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.