Re: Possible but in gitweb

2 messages, 2 authors, 2016-08-11 · open the first message on its own page

Re: Possible but in gitweb

From: Jakub Narebski <hidden>
Date: 2016-08-11 19:37:15

Paolo Ciarrocchi wrote:
On 11/18/06, Jakub Narebski [off-list ref] wrote:
quoted
Paolo Ciarrocchi wrote:
quoted
On 11/18/06, Jakub Narebski [off-list ref] wrote:
quoted
Paolo Ciarrocchi wrote:
quoted
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

Re: Possible but in gitweb

From: Luben Tuikov <hidden>
Date: 2016-08-11 20:25:57

--- Jakub Narebski <jnareb@gmail.com> wrote:
Paolo Ciarrocchi wrote:
quoted
On 11/18/06, Jakub Narebski [off-list ref] wrote:
quoted
Paolo Ciarrocchi wrote:
quoted
On 11/18/06, Jakub Narebski [off-list ref] wrote:
quoted
Paolo Ciarrocchi wrote:
quoted
Browsing the repo I reach the following URL
http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess.html;hb=HEAD
quoted
quoted
quoted
quoted
quoted
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
quoted
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).
I think so too, at lest this is the intention: "head of line", "latest"
whatever you want to call it, in the branch context one is at.

    Luben

Tip: href(...,hash_base => $hash_base,...)

-- 
Jakub Narebski
Poland
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help