Last modified: 2012-09-19 13:43:18 UTC
I'm just going to throw this out here in case anyone has a good idea. Gitweb. Urls. Are. Ugly [*] (TM) * ViewVC: View latest source https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/libs/CSSMin.php?view=markup * ViewVC: Permalink https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/libs/CSSMin.php?revision=110557&view=markup#l210 * gitweb: View latest source (not offered anywhere, manually constructed url) https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;f=includes/libs/CSSMin.php;a=blob * gitweb: Permalink https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/libs/CSSMin.php;h=4f4b28bb0ba1f8d2eedce4a745554aff76b78fd2;hb=HEAD#l210 [*] i.m.h.o
Yes. You could use Apache rewrite rules to transform sensible URLs like gerrit.wikimedia.org/git/mediawiki/core/includes/libs/CSSMin.php into this ugly syntax. The rules would have to indicate where the project ends and the file starts. I wrote [[Template:Git file]] on Mediawiki.org to hide some of the ugliness on wiki pages. (I don't know how to get gitweb to do syntax highlighting, Google pointed me at this bug report ;-) )
Gitblit's URLs are nicer and we'll be switching in the near-ish future. Not going to invest a lot of energy into fixing up gitweb right now.