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

Re: [PATCH] gitweb: don't use pathinfo for global actions

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Jan 7, 2009, 21:32 UTC
Message-ID
<cb7bb73a0901071332x1c07114cp2eefbc4490db1eb0@mail.gmail.com>
In-Reply-To
<200901061837.23637.jnareb@gmail.com>
On Tue, Jan 6, 2009 at 6:37 PM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 16 quoted lines
> On Fri, 2 Jan 2009, Giuseppe Bilotta wrote:
>> Accepting global actions in use_pathinfo is not a very robust solution
>> due to possible present and future conflicts between project names and
>> global actions, therefore we just refuse to create PATH_INFO URLs when
>> the project is not defined.
>
> I think it is quite robust solution and it makes sense; we use
> shortcuts http://git.example.com for projects_list page, and
> http://git.example.com/path/to/repo.git for overview 'summary'
> action for a project, therefore pathinfo has to look like the
> following: http://git.example.com/repo/action/hash with "action"
> _after_ "project".  And there is also matter of backward compatibility
> of URL (URLs shouldn't break).
>
> Anyway, we have $home_link for default project_list page, which
> is path_info without project, and query without query string...

Today I had this idea: a possible way to have global actions into the path would be to use an invalid project name, but I'm not sure if there ARE invalid project names at all. Maybe using something very abstruse such as _projects_ (underscore "projects" underscore) or even just _ (underscore).

The only thing I can think of for which global actions in path WOULD be interesting would be that project tag paths would become something like http://git.example.com/_/tag/sometagname which can be tagged by the rel-tag microformat http://microformats.org/wiki/rel-tag ...

-- 
Giuseppe "Oblomov" Bilotta
Previous: Junio C Hamano
Message 4 of 4 in “gitweb: don't use pathinfo for global actions”
  1. gitweb: don't use pathinfo for global actionsGiuseppe Bilotta, Jan 2, 2009
  2. Jakub NarebskiJan 6, 2009
  3. Junio C HamanoJan 7, 2009
  4. Giuseppe BilottaJan 7, 2009

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.