Subject: Re: [PATCH] gitweb: use common parameter parsing and generation for "o", too.

From: Jakub Narebski <[email-masked]>
Date: Sat, 19 Aug 2006 23:44:27 +0200

Martin Waitz wrote:

> hoi :)
> 
> On Sat, Aug 19, 2006 at 12:55:57PM +0200, Jakub Narebski wrote:
>>> Perhaps introduce a new function which is used to access the parameters?
>>> This new function could check the URL or CGI->param or whatever and then
>>> return the requested value.
>> 
>> CGI->param. There is no reason to duplicate CGI module.
> 
> yes there is.
> using CGI->param it is not possible to use nice URLs ala
> http://git.site.org/projectpath.git
> 
> I would really appreciate to be able to use nice URLs in gitweb that
> correspond to the repository URL.

As far as I know it is now possible (of course if your web server is
configured to redirect / to gitweb.cgi, e.g. for Apache using ScriptAlias
directive) via PATH_INFO support. At least it is what is intended.

Gitweb doesn't generate links in such a way, yet, but this should be fairly
easy now, changing only href() subroutine.

But apart from this one parameter the rest have to be passed as CGI
parameters,
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git