google / gitiles

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

Add format=BLOB or fomrat=BINARY to download file content #99

Closed alonbl closed 6 years ago

alonbl commented 7 years ago

Hi, When reference to a file directly we might want to download it as-is without markdown and/or HTML rendering, for example a configuration file, an mage or a certificate. This should be simple to achieve if a format is added. If this is acceptable I will be able to prepare a patch.

As far as I understand this should be applied only to PathServlet::doGetBinary() maybe even hidden Common.soy will not be modified.

Thanks,

alonbl commented 7 years ago

Hi, I prepared a patch[1] Please consider. Thanks!

[1] https://gerrit-review.googlesource.com/c/107739/

jrn commented 6 years ago

Duplicate of #7.

jrn commented 6 years ago

Strange, https://help.github.com/articles/about-duplicate-issues-and-pull-requests/ doesn't seem to be working.