List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: HEAD tag when branch viewed
Date: Mon, 16 Sep 2013 20:04:50 +0100	[thread overview]
Message-ID: <20130916190450.GA2644@serenity.lan> (raw)
In-Reply-To: <E1C1F319446DE74DB6C5D677BFCE0BA421B497FD@NDHEP50004.na.corp.mckesson.com>

On Mon, Sep 16, 2013 at 06:35:43PM +0000, Smith, Eric wrote:
> Is this the right place to ask a cgit question?

Yes :-)

> Shouldn't the red "HEAD" indicator reflect the selected branch?
>
> Using cgit v0.9.2 the Summary display of the 'master' branch correctly
> displays the red "HEAD" indicator next to the green "master"
> indicator.
>
> But when I use the 'switch' dropdown to display the 'develop' branch
> the red "HEAD" indicator remains where it was, even though the green
> "develop" indicator is now (correctly) displayed on a different
> commit.
>
> The 'git show-ref' does have different commit shas for
> refs/head/develop and refs/head/master.

The HEAD indicator is showing where the HEAD symref on the server
points.  By default this is refs/heads/master.

You don't normally see a remote's HEAD ref although it does affect the
default branch checked out by "git clone", but you will see it if you
use "git ls-remote".


      reply	other threads:[~2013-09-16 19:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-16 18:35 Eric.Smith
2013-09-16 19:04 ` john [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130916190450.GA2644@serenity.lan \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).