* why "Not currently on any branch" but no "HEAD detached"?
@ 2020-03-30 16:16 Robert P. J. Day
2020-03-30 16:31 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2020-03-30 16:16 UTC (permalink / raw)
To: Git Mailing list
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?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: why "Not currently on any branch" but no "HEAD detached"?
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
2020-03-30 16:39 ` Robert P. J. Day
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2020-03-30 16:31 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Git Mailing list
"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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: why "Not currently on any branch" but no "HEAD detached"?
2020-03-30 16:31 ` Junio C Hamano
@ 2020-03-30 16:39 ` Robert P. J. Day
0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2020-03-30 16:39 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing list
On Mon, 30 Mar 2020, Junio C Hamano wrote:
> "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.
got it, thanks.
rday
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-30 16:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2020-03-30 16:39 ` Robert P. J. Day
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).