From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Witten Subject: Re: [PATCH v3] Docs: git checkout --orphan: `root commit' and `branch head' Date: Thu, 29 Sep 2011 15:52:42 -0000 Message-ID: <271cc2ed03774b4988bb61cb3e79750e-mfwitten@gmail.com> References: <1316960136073-6829212.post@n2.nabble.com> <1316961212.4388.5.camel@centaur.lab.cmartin.tk> <7vaa9r2jii.fsf@alter.siamese.dyndns.org> <1317073309.5579.9.camel@centaur.lab.cmartin.tk> <69d6fb3199bc4f74b25dae7992a9f132-mfwitten@gmail.com> <553B5FA1A43748B1ADD759572EADA6FF@PhilipOakley> <7vaa9oz9rl.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Carlos =?utf-8?Q?Mart=C3=ADn?= Nieto , vra5107 , Michael J Gruber , Matthieu Moy , Eric Raible , Philip Oakley , Jeff King , Jay Soffian , To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Sep 29 18:40:52 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9JfE-0004wh-Ro for gcvg-git-2@lo.gmane.org; Thu, 29 Sep 2011 18:40:49 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757236Ab1I2Qke (ORCPT ); Thu, 29 Sep 2011 12:40:34 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:50930 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757049Ab1I2Qkb (ORCPT ); Thu, 29 Sep 2011 12:40:31 -0400 Received: by gyg10 with SMTP id 10so695361gyg.19 for ; Thu, 29 Sep 2011 09:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:date:from:to:cc:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=C4/I8QoKvwwmeH8qYttOTWB7AYut6HVULIpNylkfV9s=; b=aQ6nGFhudpc/s6QNDgnOumb7HYaH1CZZFw5uqZDT7RFfLMdWTUgZ5bJs0BXGjx8uyj yaWMXHgcAV7qyV2e9uCgLiSPykblYymnmWqK8C+eUFdU5Gfn3b2nuE8CU/WT4S/F4UlQ uz17zZN3OIHxz6ZGMDL+IHMzanh+rYndVxJcE= Received: by 10.68.15.71 with SMTP id v7mr53587312pbc.11.1317314430678; Thu, 29 Sep 2011 09:40:30 -0700 (PDT) Received: from gmail.com (tor-exit-router39-readme.formlessnetworking.net. [199.48.147.39]) by mx.google.com with ESMTPS id z1sm8157763pbl.5.2011.09.29.09.40.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Sep 2011 09:40:29 -0700 (PDT) In-Reply-To: <7vaa9oz9rl.fsf@alter.siamese.dyndns.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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=