Re: [PATCH] recursive submodules: detach HEAD from new state
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 24, 2017, 20:57 UTC
- Message-ID
- <xmqqinihd048.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAGZ79kaYzHzSdDZuMpM6UFXLon0SME-nC=9_09PLhLEADfuscw@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 10 quoted lines
>> Are you saying >> the current behavior of updating whatever branch HEAD is on (which, >> don't get me wrong, is a wrong behavior that needs fixing) bypassed >> the reflog? > > No, I am not saying that. > I am saying that updating an unrelated branch (which is dragged into > the affair just because HEAD points at it) is very subtle thing, as any > commits on that branch can be considered safe (it is on a branch, right?) > but the detached HEAD is the default unsafe mode we currently have.
Then it is not a data loss as you claimed in the proposed log message, but is something else, no?