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

Re: Possible but in gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 18, 2006, 18:21 UTC
Message-ID
<200611181921.25873.jnareb@gmail.com>
In-Reply-To
<4d8e3fd30611181003o6374f01cy504c0c058f374f1@mail.gmail.com>
Paolo Ciarrocchi wrote:
Show 20 quoted lines
> On 11/18/06, Jakub Narebski <jnareb@gmail.com> wrote:
>> Paolo Ciarrocchi wrote:
>>> On 11/18/06, Jakub Narebski <jnareb@gmail.com> wrote:
>>>> Paolo Ciarrocchi wrote:
>>>>>
>>>>> Browsing the repo I reach the following URL
>>>>> http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess.html;hb=HEAD
>>>>> that is not accessible.
>>>>
>>>> Because HEAD is master, not html, and there us no such file in master branch?
>>>
>>> Fair enough but then there should be no link in the web interface.
>>> That sounds like a bug in the interface.
>>
>> Where did you find this link? On what page?
> 
> Here:
> http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess.html;h=b5e39498997930cd14ecddfe120f62c577ce2e28;hb=html
> 
> try now to press "HEAD"

Ah, well. This could be considered a bug... but it can be not. The link is clearly marked "HEAD", so you are requesting HEAD version of the file... which does not exist.

We could check if the file has HEAD version, but that is another call to git commands.

What you want is the link to the tip of branch ("head", "top" or "tip")...
you are welcome to add that (or replace "HEAD" link with that).
Tip: href(...,hash_base => $hash_base,...)
-- 
Jakub Narebski
Previous: Petr BaudisNext: Luben Tuikov
Message 6 of 7 in “Possible but in gitweb”
  1. Paolo CiarrocchiNov 18, 2006
  2. Jakub NarebskiNov 18, 2006
  3. Paolo CiarrocchiNov 18, 2006
  4. Jakub NarebskiNov 18, 2006
  5. Petr BaudisNov 18, 2006
  6. Jakub NarebskiNov 18, 2006
  7. Luben TuikovNov 18, 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.