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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <dstolee@xxxxxxxxxxxxx>
>>
>> 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.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux