git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: Git Mailing list <git@vger.kernel.org>
Subject: Re: why "Not currently on any branch" but no "HEAD detached"?
Date: Mon, 30 Mar 2020 09:31:05 -0700	[thread overview]
Message-ID: <xmqq8sjhajp2.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <alpine.LFD.2.21.2003301211330.14880@localhost.localdomain> (Robert P. J. Day's message of "Mon, 30 Mar 2020 12:16:50 -0400 (EDT)")

"Robert P. J. Day" <rpjday@crashcourse.ca> writes:

>   probably a silly question (and probably related to using an old
> version of git), but on a ubuntu 16.04.6 dev system, i used google's
> "repo" tool to check out a bunch of git repos, and when i pop into
> those git repos and run "git status", i see:
>
>   # Not currently on any branch
>   nothing to commit, working tree clean
>
> i'm used to seeing "HEAD detached at <something>" ... is the above
> just an older style of the same message, given that this system uses
> git 2.9.2? or is there something else going on here?

b397ea48 (status: show more info than "currently not on any branch",
2013-03-13) is the culprit.  We used to just say the HEAD was
detached, but for the past 7 years or so, when we know the last
branch we were on before detaching, we report the name of the
branch.

  reply	other threads:[~2020-03-30 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 16:16 why "Not currently on any branch" but no "HEAD detached"? Robert P. J. Day
2020-03-30 16:31 ` Junio C Hamano [this message]
2020-03-30 16:39   ` Robert P. J. Day

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=xmqq8sjhajp2.fsf@gitster.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=rpjday@crashcourse.ca \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).