Re: [PATCH 2/3] sparse-checkout: clear patterns when switching modes
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Sep 20, 2021, 18:54 UTC
- Message-ID
- <YUjYyY+1IXOJYvgk@nand.local>
- In-Reply-To
- <YUjYZNqvvxVRctJQ@nand.local>
On Mon, Sep 20, 2021 at 02:52:20PM -0400, Taylor Blau wrote:
> See my message at [1] for some more details about a possible suggestion > there.
OK, I see that in the third patch we do start complaining about adding patterns in cone-mode when the existing sparse checkout configuration does not form a cone.
So that may indicate that we expect users who wish to blow away their configuration to just run "init --cone". I'd be OK with that (without an additional warning step, although I think that doing that would be better). But either way, we should document this behavior clearly.
> [1]: https://lore.kernel.org/git/YUi55%2F3L9nizTVyA@nand.local/
Thanks, Taylor