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