Re: Bug: "git checkout -b" should be allowed in empty repo
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 6, 2012, 05:34 UTC
- Message-ID
- <7vfweoa5jx.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7vk440a5qw.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> But the last one has no chance of working if you think about it, because > "git branch foo $start" is a way to start a branch at $start and you need > to have something to point at with refs/heads/foo.
... which brings us back to your earlier point ...
>> I like your patch better than trying to pass around "0{40}", but:which is why my conclusion was that "checkout -b" is shifting the confusion around to different parts.
> So we are breaking the equivalence between these three only when HEAD > points at an unborn branch.