hoi :)
I hacked a little bit in gitweb so that it can get the project path
form the URI without using a ?p=3D parameter. That is, you can now
use "http://.../cgi-bin/gitweb.cgi/path/to/project/" to show
the summary of your project.
Together with a apache configuration like below, you can give your
gitweb pages the same URL as your repositories:
<VirtualHost www:80>
ServerName git.hostname.org
DocumentRoot /pub/git
RewriteEngine on
RewriteRule ^/(.*\.git/(.*\.html)?)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUES=
T_URI} [L]
</VirtualHost>
This will rewrite all URLs that go to gitweb to use the CGI, while
leaving URLs for the repository intact.
You can see an example at http://git.admingilde.org/.
The gitweb version used for that is available here, too.
As an added bonus, gitweb can now serve the "html" branch of a
repository directly using "text/html", so you can show your
documentation without needing to update a checked out version
of this branch.
For example have a look at the GIT manpages at
http://git.admingilde.org/tali/git.git/git.html
--=20
Martin Waitz| James Bruce | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Peter Zijlstra | [PATCH 00/23] per device dirty throttling -v8 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Peter Zijlstra | [RFC/PATCH 0/4] CPUSET driven CPU isolation |
git: | |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Rick Jones | Re: Network latency regressions from 2.6.22 to 2.6.29 |
| David Miller | [GIT]: Networking |
| Josip Rodin | bnx2_poll panicking kernel |
