Subject: Re: [PATCH v5 10/17] sparse-checkout: init and set in cone mode

From: Derrick Stolee <[email-masked]>
Date: Thu, 21 Nov 2019 08:45:56 -0500

On 11/19/2019 12:50 PM, SZEDER Gábor wrote:
> On Mon, Oct 21, 2019 at 01:56:19PM +0000, Derrick Stolee via GitGitGadget wrote:
>> From: Derrick Stolee <[email-masked]>
>>
>> To make the cone pattern set easy to use, update the behavior of
>> 'git sparse-checkout [init|set]'.
>>
>> Add '--cone' flag to 'git sparse-checkout init' to set the config
>> option 'core.sparseCheckoutCone=true'.
> 
> It's not necessary to run 'git sparse-checkout init' before running
> 'git sparse-checkout set'.  The description of the latter in the
> documentation is not explicit about it, but the commit message adding
> the 'set' subcommand is, and there are several test cases that run
> 'set' without a preceeding 'init.
> 
> Therefore, I think the 'set' subcommand should get a '--cone' option
> as well.

I will take this under advisement, and revisit it in the follow-up. The
recommended usage is to run 'init --cone' first, or to set
'core.sparseCheckoutCone=true' before running the 'set' command. We can
improve this pattern to be more robust in the future.