Re: [PATCH] Docs: git checkout --orphan: `root commit' and `branch head'
- From
Michael Witten <mfwitten@gmail.com>
- Date
- Sep 28, 2011, 13:50 UTC
- Message-ID
- <CAMOZ1Bu8UiV+Z0+0CLjxSv5Zic8i4=aGxnzmLc+H7c2T-P4avw@mail.gmail.com>
- In-Reply-To
- <vpqty7wok5a.fsf@bauges.imag.fr>
On Wed, Sep 28, 2011 at 13:45, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 12 quoted lines
> Michael Witten <mfwitten@gmail.com> writes: > >> Well, I think Jeff already proferred a solution. We could have: >> >> git commit --no-parent > [...] > > Appart from the safety objections, is the "root commit" senario common > enough to deserve appearing in the user-interface for both "commit" and > "checkout"? > > I think "git commit -h" is scary enough as it is ...
Well, as Junio mentioned, "--orphan" could be deprecated in favor of "--no-parent"; the uncommon nature of this task works to our advantage, in that it makes a deprecation of "--orphan" easy.