Thread (5 messages) flat view 5 messages, 3 authors, 2016-08-11

Re: Possible but in gitweb

From: Paolo Ciarrocchi <hidden>
Date: 2016-08-11 20:39:11

On 11/18/06, Jakub Narebski [off-list ref] wrote:
Paolo Ciarrocchi wrote:
quoted
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?
Fair enoough but then there should be no link in the web interface.
That sounds like a bug in the interface.
But all the following links
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess.html;hb=html
Yeah, but I would like to see the interpreted page.

http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess;hb=master

That is master not html
  http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess;hb=HEAD
works
Same as above.
You can use
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git/html:/LinuxKernelDevelopmentProcess.html
Yes, thanks! Is it reachable via the web interface?
Is it always pointing to the top of the repo?
or
 http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git/html:LinuxKernelDevelopmentProcess.html
(and there is remote possibility that links would work, too)
quoted
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.
Well, I don't see how it is possible just browsing with gitweb.
Am I wrong?
P.S. Please reply also to git mailing list...
Ciao,
-- 
Paolo
http://docs.google.com/View?docid=dhbdhs7d_4hsxqc8
http://www.linkedin.com/pub/0/132/9a3
Non credo nelle otto del mattino. Però esistono. Le otto del mattino
sono l'incontrovertibile prova della presenza del male nel mondo.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help