git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Add Gitweb support for LZMA compressed snapshots
@ 2009-07-30  5:48 Mark A Rada
  2009-07-30  7:44 ` J.H.
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Mark A Rada @ 2009-07-30  5:48 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

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


[-- Attachment #2: 0001-Add-Gitweb-support-for-LZMA-compressed-snapshots.patch --]
[-- Type: application/octet-stream, Size: 1115 bytes --]

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


[-- Attachment #3: Type: text/plain, Size: 3 bytes --]





^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-08-01 21:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30  5:48 Add Gitweb support for LZMA compressed snapshots Mark A Rada
2009-07-30  7:44 ` J.H.
2009-08-01  7:43   ` Alex Riesen
2009-08-01 14:34     ` Dmitry Potapov
2009-08-01 14:38     ` André Goddard Rosa
2009-08-01 14:58     ` Jim Meyering
2009-08-01 18:51       ` Alex Riesen
2009-07-30  7:52 ` Johannes Schindelin
2009-07-30  8:31 ` Jakub Narebski
2009-07-30  8:43   ` Johannes Schindelin
2009-07-31 15:45     ` Felipe Contreras
2009-08-01 12:34       ` Johannes Schindelin
2009-08-01 13:10         ` Felipe Contreras
2009-08-01 14:04           ` Erik Faye-Lund
2009-08-01 16:07             ` Mark A Rada
2009-08-01 21:39               ` Erik Faye-Lund
2009-08-01 14:13       ` Dmitry Potapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).