From: Peter Baumann <waste.manager@gmx.de>
To: Erick Mattos <erick.mattos@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH v3] git checkout: create unparented branch by --orphan
Date: Sun, 21 Mar 2010 18:14:31 +0100 [thread overview]
Message-ID: <20100321171431.GE2557@m62s10.vlinux.de> (raw)
In-Reply-To: <1269185678-3039-1-git-send-email-erick.mattos@gmail.com>
On Sun, Mar 21, 2010 at 12:34:38PM -0300, Erick Mattos wrote:
> Similar to -b, --orphan creates a new branch, but it starts without any
> commit. After running "git checkout --orphan newbranch", you are on a
> new branch "newbranch", and the first commit you create from this state
> will start a new history without any ancestry.
>
> "git checkout --orphan" keeps the index and the working tree files
> intact in order to make it convenient for creating a new history whose
> trees resemble the ones from the original branch.
>
Sorry to skim in so late but --orphan sounds - at least to me as a non native
speaker - a little strange. Yes, I know it means "without parents", but
actually it would be the *last* thing I would search for after opening the
manpage.
Wouldn't --empty-parent or --no-parent describe the situation better?
It actually has the benefit that it would match on a search for /parent/,
which I would have searched for if I want to create a new empty branch.
--
Peter
next prev parent reply other threads:[~2010-03-21 17:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-21 15:34 [PATCH v3] git checkout: create unparented branch by --orphan Erick Mattos
2010-03-21 17:14 ` Peter Baumann [this message]
2010-03-21 17:55 ` Erick Mattos
2010-03-21 19:37 ` Junio C Hamano
2010-03-21 21:15 ` Erick Mattos
2010-03-22 8:54 ` Michael J Gruber
2010-03-22 12:46 ` Chris Johnsen
2010-03-22 14:36 ` Erick Mattos
2010-03-21 21:38 ` Junio C Hamano
2010-03-22 12:43 ` Chris Johnsen
2010-03-22 14:14 ` Erick Mattos
2010-03-22 16:06 ` Translating error messages in Git (was: Re: [PATCH v3] git checkout: create unparented branch by --orphan) Jakub Narebski
2010-03-22 20:19 ` [PATCH v3] git checkout: create unparented branch by --orphan Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100321171431.GE2557@m62s10.vlinux.de \
--to=waste.manager@gmx.de \
--cc=erick.mattos@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).