* Possible but in gitweb
@ 2006-11-18 16:58 Paolo Ciarrocchi
2006-11-18 17:35 ` Jakub Narebski
0 siblings, 1 reply; 7+ messages in thread
From: Paolo Ciarrocchi @ 2006-11-18 16:58 UTC (permalink / raw)
To: Git Mailing List
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 lnkind 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.
Looks like is not possible to obtain a link to the top of a branch
different from master.
Regards,
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Possible but in gitweb
2006-11-18 16:58 Possible but in gitweb Paolo Ciarrocchi
@ 2006-11-18 17:35 ` Jakub Narebski
2006-11-18 17:42 ` Paolo Ciarrocchi
0 siblings, 1 reply; 7+ messages in thread
From: Jakub Narebski @ 2006-11-18 17:35 UTC (permalink / raw)
To: git
Paolo Ciarrocchi wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Possible but in gitweb
2006-11-18 17:35 ` Jakub Narebski
@ 2006-11-18 17:42 ` Paolo Ciarrocchi
2006-11-18 18:01 ` Jakub Narebski
0 siblings, 1 reply; 7+ messages in thread
From: Paolo Ciarrocchi @ 2006-11-18 17:42 UTC (permalink / raw)
To: Jakub Narebski; +Cc: Git Mailing List
On 11/18/06, Jakub Narebski <jnareb@gmail.com> wrote:
> Paolo Ciarrocchi wrote:
>
> > 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)
>
> > 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Possible but in gitweb
2006-11-18 17:42 ` Paolo Ciarrocchi
@ 2006-11-18 18:01 ` Jakub Narebski
[not found] ` <4d8e3fd30611181003o6374f01cy504c0c058f374f1@mail.gmail.com>
2006-11-18 18:41 ` Petr Baudis
0 siblings, 2 replies; 7+ messages in thread
From: Jakub Narebski @ 2006-11-18 18:01 UTC (permalink / raw)
To: Paolo Ciarrocchi; +Cc: git
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?
"Browsing the repo" is not enough information to discover where
there is a bug.
--
Jakub Narebski
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Possible but in gitweb
[not found] ` <4d8e3fd30611181003o6374f01cy504c0c058f374f1@mail.gmail.com>
@ 2006-11-18 18:21 ` Jakub Narebski
2006-11-18 19:06 ` Luben Tuikov
0 siblings, 1 reply; 7+ messages in thread
From: Jakub Narebski @ 2006-11-18 18:21 UTC (permalink / raw)
To: Paolo Ciarrocchi
Paolo Ciarrocchi wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Possible but in gitweb
2006-11-18 18:01 ` Jakub Narebski
[not found] ` <4d8e3fd30611181003o6374f01cy504c0c058f374f1@mail.gmail.com>
@ 2006-11-18 18:41 ` Petr Baudis
1 sibling, 0 replies; 7+ messages in thread
From: Petr Baudis @ 2006-11-18 18:41 UTC (permalink / raw)
To: Jakub Narebski; +Cc: Paolo Ciarrocchi, git
On Sat, Nov 18, 2006 at 07:01:30PM CET, Jakub Narebski 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?
>
> "Browsing the repo" is not enough information to discover where
> there is a bug.
It's not really hard to find. :-)
http://repo.or.cz/w/LinuxKernelDevelopmentProcess.git?a=blob;f=LinuxKernelDevelopmentProcess.html;h=b5e39498997930cd14ecddfe120f62c577ce2e28;hb=html
I think the link shouldn't be 'HEAD' but 'latest' and point to the
latest version in the currently browser branch.
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
The meaning of Stonehenge in Traflamadorian, when viewed from above, is:
"Replacement part being rushed with all possible speed."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Possible but in gitweb
2006-11-18 18:21 ` Jakub Narebski
@ 2006-11-18 19:06 ` Luben Tuikov
0 siblings, 0 replies; 7+ messages in thread
From: Luben Tuikov @ 2006-11-18 19:06 UTC (permalink / raw)
To: Jakub Narebski, Paolo Ciarrocchi; +Cc: git
--- Jakub Narebski <jnareb@gmail.com> wrote:
> Paolo Ciarrocchi wrote:
> > 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).
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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-11-18 19:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-18 16:58 Possible but in gitweb Paolo Ciarrocchi
2006-11-18 17:35 ` Jakub Narebski
2006-11-18 17:42 ` Paolo Ciarrocchi
2006-11-18 18:01 ` Jakub Narebski
[not found] ` <4d8e3fd30611181003o6374f01cy504c0c058f374f1@mail.gmail.com>
2006-11-18 18:21 ` Jakub Narebski
2006-11-18 19:06 ` Luben Tuikov
2006-11-18 18:41 ` Petr Baudis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).