Re: [PATCH] gitweb: use common parameter parsing and generation for "o", too.
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Aug 19, 2006, 21:44 UTC
- Message-ID
- <ec80nk$i25$1@sea.gmane.org>
- In-Reply-To
- <20060819183303.GC30022@admingilde.org>
Martin Waitz wrote:
Show 15 quoted lines
> 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