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: AS3215 2.6.0.0/16 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id B804B1F4D7 for ; Wed, 25 May 2022 16:32:32 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=pobox.com header.i=@pobox.com header.b="FFpQ+QSG"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245471AbiEYQca (ORCPT ); Wed, 25 May 2022 12:32:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230014AbiEYQc2 (ORCPT ); Wed, 25 May 2022 12:32:28 -0400 Received: from pb-smtp20.pobox.com (pb-smtp20.pobox.com [173.228.157.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B2037A35 for ; Wed, 25 May 2022 09:32:28 -0700 (PDT) Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 82329188BFA; Wed, 25 May 2022 12:32:27 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=9Shh+un6LLOglyXzNcdHh5i/pBsHPpO7u8MLQk Sfy9s=; b=FFpQ+QSGNAtsfKd+7MytO17YM494vWOuhHmNSws2222uVRlsHFnJ3u G8bPXcZltyrAmlhDVeydONqfeDd8ioOw9lGiJsdTOJaOblI3DVV+EEiuIaGf6/rc n6fifpSOw12c4SGfLRtw6ADIDNSF/tOuknNzizEXGDUZm/ainw7W8= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 7AF10188BF9; Wed, 25 May 2022 12:32:27 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.83.92.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 2DEEB188BF8; Wed, 25 May 2022 12:32:24 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Derrick Stolee Cc: Derrick Stolee via GitGitGadget , git@vger.kernel.org, vdye@github.com, shaoxuan.yuan02@gmail.com, Derrick Stolee Subject: Re: [PATCH v2 08/10] sparse-index: complete partial expansion References: <5909f466-c323-0874-b175-51fe5e93dc12@github.com> Date: Wed, 25 May 2022 09:32:23 -0700 In-Reply-To: (Derrick Stolee's message of "Wed, 25 May 2022 10:26:41 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 41D718F2-DC48-11EC-94C9-C85A9F429DF0-77302942!pb-smtp20.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Derrick Stolee writes: > If a user is in a conflict state and modifies their sparse-checkout > cone, then we will hit this "recompute the cache-tree" state, fail, > and cause full index expansion. I think that combination (have a > conflict AND modify sparse-checkout cone) is rare enough to not > optimize for (yet). > > Does that make the situation more clear? Yes. "AND modify sparse-checkout cone" part was what I was missing. I didn't see it because it wasn't there at all in the code that was removed or added---it comes from the fact that the user is running the "sparse-checkout" command in the first place, and that was what I missed. Thanks.