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

Re: Add Gitweb support for LZMA compressed snapshots

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Aug 1, 2009, 14:13 UTC
Message-ID
<20090801141304.GB10264@dpotapov.dyndns.org>
In-Reply-To
<94a0d4530907310845k51dbafbfy8e240467113dfc16@mail.gmail.com>
On Fri, Jul 31, 2009 at 03:45:02PM +0000, Felipe Contreras wrote:
> 
> bzip2 has no advantages whatsoever. AFAIK xz is superior to other
> formats and it would be nice to see git make a technological stance
> encouraging xz.

git is not about encouraging any compression. If you have not noticed, git-archive produces tar and not tgz (though it would not be difficult to implement it, because we use zlib anyway). If you like xz and it is installed on your system, you can always compress tar with it:

git archive HEAD | xz > my-archive.tar.xz
So, I see no reason to have this compression coupled with git.
Show 5 quoted lines
> 
> > The only reason we have inbuilt gzip and zip support is because the format
> > is so similar to Git's own compression.
> 
> Personally I don't see the point of having zip support.

zip is still a popular format on Windows. If git archive was not able to produce then creating would require creating tar first, extracting it to some temporary directory and then creating a zip file. It is not very efficient process and requires extra efforts, so because we use zlib compression anyway, it makes perfect sense that we can create zip file directly.

Dmitry
Previous: Erik Faye-Lund
Message 17 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.