From: Duy Nguyen Date: Fri, 08 Feb 2019 08:46:27 GMT Subject: Re: [PATCH 08/19] checkout: split part of it to new command switch Message-ID: In-Reply-To: <20190131130953.GJ13764@szeder.dev> On Thu, Jan 31, 2019 at 8:09 PM SZEDER Gábor wrote: > > 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 :: > > + Create a new 'orphan' branch, named , started from > > + 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 " is not super clear on this, but git-checkout.txt describes more and says that it's essentially "git checkout " then make an orphan branch based on HEAD^{tree}. -- Duy