Re: [PATCH v3] git checkout -b: unparent the new branch with -o
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 17, 2010, 05:23 UTC
- Message-ID
- <7v4okfiksh.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20100317041307.GA26641@progeny.tock>
Jonathan Nieder <jrnieder@gmail.com> writes:
> Junio was discussing the case B.
Well, not really. Even as an ingredient, "nuke index, leaving files in the work tree around" is the most difficult-to-use mode of operation. Either "try to run 'git rm -f .' from the toplevel and only if it succeeds point HEAD to an unborn branch" (aka "remove both"), or "point HEAD to an unborn branch without doing anything else" (aka "keep both") would be an ingredient that is far easier to use.