Re: why "Not currently on any branch" but no "HEAD detached"?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 30, 2020, 16:31 UTC
- Message-ID
- <xmqq8sjhajp2.fsf@gitster.c.googlers.com>
- In-Reply-To
- <alpine.LFD.2.21.2003301211330.14880@localhost.localdomain>
"Robert P. J. Day" <rpjday@crashcourse.ca> writes:
Show 11 quoted lines
> 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.