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, 17:35 UTC
Message-ID
<ejng62$k2m$1@sea.gmane.org>
In-Reply-To
<4d8e3fd30611180858xf28e958g8511f2eb68d53848@mail.gmail.com>
Paolo Ciarrocchi wrote:
Show 20 quoted lines
> Hi all,
> I'm playing with a repo hosted by repos.os.cz and I think I faced a
> bug (Pasky confirmed that this should be reported here as a bug).
> 
> My repo has two branches,
> * master
>   html
> 
> Master contains a text file while html contains his conversion in html
> done via asciidoc.
> 
> I need to URLs that point to the top of the branches in order to have
> an easy way for linking the documentation to external portals.
> 
> This link points to HEAD, so top of master:
> http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob_plain;f=LinuxKernelDevelopmentProcess;hb=HEAD
>
> 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?
But all the following links
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess.html;hb=html
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess;hb=master
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess;hb=HEAD
works
You can use
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git/html:/LinuxKernelDevelopmentProcess.html
or
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git/html:LinuxKernelDevelopmentProcess.html
(and there is remote possibility that links would work, too)
> Looks like is not possible to obtain a link to the top of a branch
> different from master.
It is possible, but you must specify the branch.
P.S. Please reply also to git mailing list...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Paolo CiarrocchiNext: Paolo Ciarrocchi
Message 2 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.