Re: [PATCH 08/19] checkout: split part of it to new command switch
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 8, 2019, 08:46 UTC
- Message-ID
- <CACsJy8D-vL88JaJYqhXnkJ5Cxvou_=haSFLpwELuX-E9cj_9aQ@mail.gmail.com>
- In-Reply-To
- <20190131130953.GJ13764@szeder.dev>
On Thu, Jan 31, 2019 at 8:09 PM SZEDER Gábor <szeder.dev@gmail.com> wrote:
Show 13 quoted lines
> > On Wed, Jan 30, 2019 at 04:48:20PM +0700, Nguyễn Thái Ngọc Duy wrote: > > diff --git a/Documentation/git-switch.txt b/Documentation/git-switch.txt > > new file mode 100644 > > index 0000000000..953c9747b2 > > > +--orphan <new_branch>:: > > + Create a new 'orphan' branch, named <new_branch>, started from > > + <start_point> and switch to it. See explanation of the same > > + option in linkgit:git-checkout[1] for details. > > Copy-paste error? An orphan branch, by definition, doesn't have a > starting point.
It does not have any parents, true. The "started from <start-point>" is not super clear on this, but git-checkout.txt describes more and says that it's essentially "git checkout <start_point>" then make an orphan branch based on HEAD^{tree}.
-- Duy