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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 17, 2006, 14:20 UTC
Message-ID
<eejlht$870$1@sea.gmane.org>
In-Reply-To
<eejhtr$paa$1@sea.gmane.org>

matled (Matthias Lederhofer) on #git proposed to use ':' as a separator between branch and filename (as branch doesn't need to be flat, e.g. "jc/diff" like branch name), because valid branch name cannot contain ':' (and this limit is only for branch name).

He also said that filename doesn't need to be necessary file (which would be then present in "blob_plain" view), but it can be also a directory (which then would be present in "tree" view). We can either check type using git-cat-file -t via git_get_type subroutine, or assume that if we want for directory to be shown, it should end with "/".

Let's assume for simplicity that empty branch name equals to HEAD branch, and empty filename equals to top (root) directory of project.

So we would have the following types of path based URLs:
* 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
Possible shortcuts:
* 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
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Jakub NarebskiNext: Martin Waitz
Message 6 of 8 in “gitweb: more support for PATH_INFO based URLs”
  1. gitweb: more support for PATH_INFO based URLsMartin Waitz, Sep 16, 2006
  2. Jakub NarebskiSep 16, 2006
  3. gitweb: fix warnings from dd70235f5a81e (PATH_INFO)Matthias Lederhofer, Sep 17, 2006
  4. Junio C HamanoSep 17, 2006
  5. Jakub NarebskiSep 17, 2006
  6. Jakub NarebskiSep 17, 2006
  7. Martin WaitzSep 19, 2006
  8. Jakub NarebskiSep 19, 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.