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

Re: [PATCHv5] Add Gitweb support for XZ compressed snapshots

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 1, 2009, 08:14 UTC
Message-ID
<m3zlakq7bt.fsf@localhost.localdomain>
In-Reply-To
<4A739087.1090301@eaglescrag.net>
"J.H." <warthog19@eaglescrag.net> writes:
> Well you can always call xz with -[1-9] to change the compression
> level (same as gzip and bzip2) though I think a full disabling would
> be 'more' preferable, though I'm not sure I like Jakub's suggestion of
> just deleting it after the fact, it would work.
[...]

The problem is that 'keys %known_snapshot_formats' serves also as list of allowed snapshot formats, if project specific override is enabled. We can add another optional flag ('disabled' => 1) if you don't want to delete from %known_snapshot_formats in $GITWEB_CONFIG, though I don't know if it is worth it. Anyway such mechanism can be added, and IMHO should be added, in a separate commit.

> I think more my concern is more what's enabled by default, and since
> xz is still new (as was pointed out) it's probably worth only enabling
> if the admin selects it to be enabled.

By default (i.e. as in gitweb in git.git) 'snapshot' feature has disabled projects specific override. Which means only 'tgz' snapshot is enabled / used.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Jakub NarebskiNext: Jakub Narebski
Message 9 of 10 in “[PATCHv5] Add Gitweb support for XZ compressed snapshots”
  1. Mark A RadaAug 1, 2009
  2. J.H.Aug 1, 2009
  3. demerphqAug 1, 2009
  4. Jakub NarebskiAug 1, 2009
  5. demerphqAug 1, 2009
  6. Jakub NarebskiAug 2, 2009
  7. demerphqAug 2, 2009
  8. Jakub NarebskiAug 3, 2009
  9. Jakub NarebskiAug 1, 2009
  10. Jakub NarebskiAug 3, 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.