Re: [PATCH/RFC] builtin-checkout: suggest creating local branch when appropriate to do so
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Oct 14, 2009, 01:05 UTC
- Message-ID
- <76718490910131805o42e8321ama85b90b7e901dc7d@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0910140117280.4985@pacific.mpi-cbg.de>
On Tue, Oct 13, 2009 at 7:22 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> At some point, trying to educate the user is not helpful but annoying. If > Git already knows what I want, why does it not do it already? _That_ is > the question I already hear in my ears.
Modify checkout so that the first commit while detached automatically creates a branch. Perhaps the name is derived from the branch point, or the user is prompted for a name.
This doesn't help with the original problem, which was that a user attempted to checkout refs/remotes/origin/<name> by just saying 'git checkout <name>' which I happen to think should work. A lot of what I keep hearing in this thread seems to be in the vein of the perfect being the enemy of the good.
That rambled a bit. Sorry.
j.