From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 1E52A1F619 for ; Tue, 3 Mar 2020 21:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728560AbgCCVyk (ORCPT ); Tue, 3 Mar 2020 16:54:40 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:53254 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbgCCVyk (ORCPT ); Tue, 3 Mar 2020 16:54:40 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id BD660559D1; Tue, 3 Mar 2020 16:54:37 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=tAgPxSALsfJ2w/GFHvyeQOa05GI=; b=HtvlJN vuQrJXdBkd60SddLHeKrhuB+1PhHE3lrj9ChHcOOjVLha9sQND6nMJ9Is4uJPyEu jDsYrE6DaSy6RCdFn/yLo5OEs25anxmPrXNWbaYwgeJyM5RBL7agikYtFmNi+uXH dG+PSVeFv2kH347yxWc+WjvcW3lM3VCBRbgmI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=q5BtWP8U7VxZckgQVbJrtDC3r8u/xRkR omd9bF5jDNSBG69YfJuE7IMwgeL53Ntz7cWCdWsYoMLl2iSLEA4oKv9J6NugNLyQ HnuexlBpfe8FLRgGOHCokI780bJz9oMMAlyJZc5d886oLdi8Fu0g0v/hXM5Ez9ym jcJ2lS/QIl4= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id B3F80559D0; Tue, 3 Mar 2020 16:54:37 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.76.80.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 21F12559CF; Tue, 3 Mar 2020 16:54:37 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: Damien Robert Cc: git@vger.kernel.org, Philippe Blain , Damien Robert Subject: Re: [PATCH v2 2/5] doc: document --recurse-submodules for reset and restore References: <20200228103558.1684937-1-damien.olivier.robert+git@gmail.com> <20200303170740.1879432-1-damien.olivier.robert+git@gmail.com> <20200303170740.1879432-3-damien.olivier.robert+git@gmail.com> Date: Tue, 03 Mar 2020 13:54:36 -0800 In-Reply-To: <20200303170740.1879432-3-damien.olivier.robert+git@gmail.com> (Damien Robert's message of "Tue, 3 Mar 2020 18:07:37 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 93578DCC-5D99-11EA-AE0C-C28CBED8090B-77302942!pb-smtp1.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Damien Robert writes: > + > +--[no-]recurse-submodules:: > + When the working tree is updated, using --recurse-submodules will > +... > > +--recurse-submodules:: > +--no-recurse-submodules:: > + If `` names a submodule and the restore location includes > +... Hmph, this inconsistency across files is a bit unfortunate. I think (please somebody correct me from sideways) we have been moving towards using the "--[no-]option-name", so we would want to clean up the latter (together with the "--[no-]overlay" entry in the same file, with which the above tries to be consistent) sometime later when the dust settles, iow, not as a part of this series. > + is given, in which case it's working tree will be restored to the > + commit recorded in the superproject, and it's local modifications > + overwritten. If nothing (or `--no-recurse-submodules`) is used, > + the work trees of submodules will not be updated. Just like > + linkgit:git-checkout[1], this will detach `HEAD` of the submodule. > + > --overlay:: > --no-overlay:: > In overlay mode, the command never removes files when