Re: gitweb and remote branches
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Aug 31, 2007, 02:15 UTC
- Message-ID
- <cb7bb73a0708301915y47ca4a05nf511889b2bb2eaec@mail.gmail.com>
- In-Reply-To
- <cb7bb73a0708301659q6ccc1211w2c7ce315051a605e@mail.gmail.com>
On 8/31/07, Giuseppe Bilotta <giuseppe.bilotta@gmail.com> wrote:
Show 11 quoted lines
> On 8/31/07, Jakub Narebski <jnareb@gmail.com> wrote: > > On Fri, 31 August 2007, Giuseppe Bilotta wrote: > > > If I understand correctly, a detached HEAD is simply a checkout in the > > > middle of a branch, and thus not named. So what exactly are we looking > > > for when we talk about supporting a detached HEAD? Would it be enough > > > to display HEAD in the list of heads? > > > > I think we want display HEAD in the list of heads if it is detached, > > and also use it as a ref marker, while only marking (with undeline or > > bold style) current head as such if HEAD is not detached, i.e. is > > symref or symlink.
Ok, implementation at
http://oblomov.dnsalias.org/git?p=git.git;a=summary
comments welcome. You can see it in action here
http://oblomov.dnsalias.org/git?p=gittest.git;a=summary
It may not be the smartest implementation, but it's what I could cook up with my limited git knowledge. Plus, since it's WAY past my bedtime, I'll have to dealy publishing my gitweb-allheads at least until tomorrow.
Have fun,
-- Giuseppe "Oblomov" Bilotta