From: Michael Witten Date: Thu, 29 Sep 2011 16:40:27 GMT Subject: Re: [PATCH v3] Docs: git checkout --orphan: `root commit' and `branch head' Message-ID: <271cc2ed03774b4988bb61cb3e79750e-mfwitten@gmail.com> In-Reply-To: <7vaa9oz9rl.fsf@alter.siamese.dyndns.org> On Wed, 28 Sep 2011 13:34:22 -0700, Junio C Hamano wrote: > As to what the updated text wants to talk about, I think most of them are > improvement, but there are a few glitches and nits. > >> ... >> >> +--orphan:: >> + Tell git to turn the next commit you create into a root commit >> + (that is, a commit without any parent); creating the next commit >> + is similar to creating the first commit after running "git{nbsp}init", > > I do not think we ever used {nbsp} in our documentation set. Is it > absolutely necessary to use it in this context, and are you absolutely > sure this does not break various versions of documentation toolchain > people have? I think it's absolutely necessary, but I'm not sure about how fragile asciidoc is across versions with regard to this... I guess I'll remove them. >> + except that the new commit will be referenced by the branch head >> + rather than "master". > > The option works as a substitute for -B/-b in the sense that it takes a > name of the new branch, and the only difference is that the new branch > will start with no commit (yet). To reduce confusion, it might make sense > to update this part (and description of -b/-B) to begin like this: > > --orphan :: > > to match the new explanation text, and the output from "git checkout -h". > By the way, shouldn't the entry for -b in "git checkout -h" output also > say ? I took the "" from the synopsis: SYNOPSIS -------- [verse] 'git checkout' [-q] [-f] [-m] [] 'git checkout' [-q] [-f] [-m] [--detach] [] 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] 'git checkout' [-f|--ours|--theirs|-m|--conflict=