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

Add Gitweb support for LZMA compressed snapshots

From
Mark A Rada <marada@uwaterloo.ca>
Date
Jul 30, 2009, 05:48 UTC
Message-ID
<E0C39B59-E2C5-4C28-9570-D33FEA2A44EB@uwaterloo.ca>
Hi,

I thought I would submit this little patch I made to my gitweb. I am on a relatively slow connection, and so LZMA compression time is less of a concern than bandwidth---I'm guessing that I am not the only person who suffers from slow internet connection syndrome.

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

From a080ce5e8467317a3f20c6de8814549e5c4f46f2 Mon Sep 17 00:00:00 2001
From: Mark Rada <marada@uwaterloo.ca>
Date: Wed, 29 Jul 2009 21:27:32 -0400
Subject: [PATCH] Add Gitweb support for LZMA compressed snapshots
Signed-off-by: Mark Rada <marada@uwaterloo.ca>
---
 gitweb/gitweb.perl |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 38492d0..e131ea4 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -184,6 +184,13 @@ our %known_snapshot_formats = (
 		'format' => 'tar',
 		'compressor' => ['bzip2']},
 
+	'txz' => {
+		'display' => 'tar.lzma',
+		'type' => 'application/x-lzma',
+		'suffix' => '.lzma',
+		'format' => 'tar',
+		'compressor' => ['lzma']},
+
 	'zip' => {
 		'display' => 'zip',
 		'type' => 'application/x-zip',
@@ -196,6 +203,7 @@ our %known_snapshot_formats = (
 our %known_snapshot_format_aliases = (
 	'gzip'  => 'tgz',
 	'bzip2' => 'tbz2',
+	'lzma'  => 'txz',
 
 	# backward compatibility: legacy gitweb config support
 	'x-gzip' => undef, 'gz' => undef,
-- 
1.6.4
Next: J.H.
Message 1 of 17 in “Add Gitweb support for LZMA compressed snapshots”
  1. Mark A RadaJul 30, 2009
  2. J.H.Jul 30, 2009
  3. Alex RiesenAug 1, 2009
  4. Dmitry PotapovAug 1, 2009
  5. André Goddard RosaAug 1, 2009
  6. Jim MeyeringAug 1, 2009
  7. Alex RiesenAug 1, 2009
  8. Johannes SchindelinJul 30, 2009
  9. Jakub NarebskiJul 30, 2009
  10. Johannes SchindelinJul 30, 2009
  11. Felipe ContrerasJul 31, 2009
  12. Johannes SchindelinAug 1, 2009
  13. Felipe ContrerasAug 1, 2009
  14. Erik Faye-LundAug 1, 2009
  15. Mark A RadaAug 1, 2009
  16. Erik Faye-LundAug 1, 2009
  17. Dmitry PotapovAug 1, 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.