git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb: Even more support for PATH_INFO based URLs

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 23, 2006, 14:55 UTC
Message-ID
<200609231655.49915.jnareb@gmail.com>
In-Reply-To
<20060923142941.GL8259@pasky.or.cz>
Petr Baudis wrote:
Show 21 quoted lines
> Dear diary, on Wed, Sep 20, 2006 at 12:49:51AM CEST, I got a letter
> where Jakub Narebski <jnareb@gmail.com> said that...
> > Now the following types of path based URLs are supported:
> > 
> > * project              overview (summary) page of project
> > * project/branch       shortlog of branch
> > * project/branch:file  file in branch, blob_plain view
> > * project/branch:dir/  directory listing of dir in branch, tree view
> > 
> > The following shortcuts works (see explanation below):
> > 
> > * project/branch:      directory listing of branch, main tree view
> > * project/:file        file in HEAD (raw)
> > * project/:dir/        directory listing of dir in HEAD
> > * project/:            directory listing of project's HEAD
> 
>   I haven't followed this stuff carefully but just to confirm, there is
> currently no way to persuade gitweb to actually produce such links,
> right?
> 
>   I like pathinfo and would like to use it for repo.or.cz's gitweb.

Well, all inner links go through href() subroutine, so this is where you would want to make changes. Having project in pathinfo would be easy, having branch/ref harder because it might be in hash, or in hash_base parameter.

Perhaps we should use
	my $path_info = $ENV{MOD_PERL} ? $r->path_info() : $ENV{PATH_INFO};
-- 
Jakub Narebski
Poland
Previous: Petr Baudis
Message 4 of 4 in “gitweb: Even more support for PATH_INFO based URLs”
  1. gitweb: Even more support for PATH_INFO based URLsJakub Narebski, Sep 19, 2006
  2. Martin WaitzSep 20, 2006
  3. Petr BaudisSep 23, 2006
  4. Jakub NarebskiSep 23, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.