google / gitiles

A simple browser for Git repositories.
https://gerrit.googlesource.com/gitiles/
Other
582 stars 174 forks source link

Consider supporting bz2 and xz compressed snapshot downloads #123

Open mbooth101 opened 6 years ago

mbooth101 commented 6 years ago

I am currently able to download xz compressed snapshots from cgit to achieve very small archive sizes. In order to move to gitiles, it would be nice to have feature parity with cgit.

hanwen commented 6 years ago

nominally, xz is already supported for tarballs. https://gerrit.googlesource.com/gitiles/+/7c07a4a68ece6009909206482e0728dbbf0be77d/java/com/google/gitiles/ArchiveFormat.java#33

maybe you can dig in a little to see why it might not be working?

mbooth101 commented 6 years ago

Hey, you're not wrong. If I click on the [tgz] and then manually change the URL to end in ".tar.xz" that seems to work.

I guess I was confused by there being no visible button or link. I only see a [tgz] link. Do I need to nag my sysadmin to make some config change so that additional [tbz2] and [txz] buttons are visible?

mbooth101 commented 6 years ago

Any thoughts on my question? Is there just configuration missing on the instance I am using? Or are code changes needed to add buttons for supported archive types?