From: Junio C Hamano Date: Wed, 21 Jun 2017 21:46:43 GMT Subject: Re: Truncating HEAD reflog on branch move Message-ID: In-Reply-To: <20170621213924.wh43i2h7v2zwihq3@genre.crustytoothpaste.net> "brian m. carlson" writes: > I get the following on 2.11.0: > > 2cbfbd5 HEAD@{0}: > 2cbfbd5 HEAD@{1}: checkout: moving from cPanel to master > eaf8db2 HEAD@{2}: checkout: moving from master to cPanel > 2cbfbd5 HEAD@{3}: clone: from https://bmc@git.crustytoothpaste.net/git/bmc/homedir.git > > and this on a recent next: > > 2cbfbd5 HEAD@{0}: Branch: renamed refs/heads/master to refs/heads/new > > For this test, any repo will work; I just picked this one because it had > two branches I could use to generate dummy reflog entries. > > A colleague reported this to me as a bug. I don't see anything in the > release notes about this as a desired behavior change, and it does seem > undesirable to truncate the reflog this way. If this isn't intentional, > I'm happy to work up a patch. I do not think either behaviour is intentional (old one that gives a meaningless empty entry probably is probably not what we want, the new one that truncates is not what we want, either).