I found a solution to the problem: If a gerrit administrator declares the mimetypes of the files to be safe they will be displayed in-browser rather than downloaded as zip files: https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#_a_i...
Could someone edit the gerrit.config file to declare php, javascript, and css files as 'safe'?
Ryan Kaldari
On 12/11/12 10:47 AM, Ryan Kaldari wrote:
This is actually my biggest annoyance with gerrit—that I can't view raw code from the change view. I can't fathom why they have a zip download link, but not a view link. Then I could copy code without copying all the line numbers.
Ryan Kaldari
On 12/11/12 9:25 AM, Niklas Laxström wrote:
On 11 December 2012 11:42, Thomas Gries mail@tgries.de wrote:
While tracking an iusse I came to https://gerrit.wikimedia.org/r/#/c/7986/ (example case) In the list of files I clicked on https://gerrit.wikimedia.org/r/#/c/7986/14/includes/UserMailer.php
Now I am "desperately seeking" a link to _show the raw file content after the commit in the __browser__,__ _but only found a link "(Download)" which starts a zip download. This is not what I wanted.
Is there a solution which I have overlooked?
If you just want to view the content, in diff view click Preferences, on the left bottom choose Whole File as context and click Update. It is no good for copy-pasting though.
-Niklas
-- Niklas Laxström
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l