Re: Re: [PATCH] Docs: git checkout --orphan: `root commit' and `branch head'
- From
Philip Oakley <philipoakley@iee.org>
- Date
- Sep 27, 2011, 21:31 UTC
- Message-ID
- <DBCBE20265964ECCA5B9724DAC74D83B@PhilipOakley>
- In-Reply-To
- <4E823359.7080602@nextest.com>
From: "Eric Raible" <raible@nextest.com>
Show 24 quoted lines
> On 11:59 AM, Junio C Hamano wrote: >> Michael Witten <mfwitten@gmail.com> writes: >> >>> It seems like a more logical approach would be instead for "git >>> commit" to take a "--root" option that would create a new root commit >>> based on the current index and then point the current branch head to >>> the new root commit. Thus: >>> >>> $ git checkout -b new_branch old_branch >>> $ # Manipulate or not >>> $ git commit --root >>> >>> That's how people think. > > Not this person. > > I like the idea but I'd rather see: > > git commit --no-parent > > "parent" at least appears in gitk and therefore newcomers will prob > have a better chance of understanding the intent w/out needing to > otherwise unnecessary terminology. > --
I think this feels and sounds sensible. And better located within the 'commit' command, rather than 'checkout --orphan' which was more obscure (and difficult to find). Philip