From: Nguyen Thai Ngoc Duy Date: Sat, 31 Jul 2010 03:28:01 GMT Subject: Re: [PATCH 1/3] Fix sparse checkout not removing files from index Message-ID: In-Reply-To: <20100731010439.GB5817@burratino> On Sat, Jul 31, 2010 at 11:04 AM, Jonathan Nieder wrote: > Jonathan Nieder wrote: > >> What happens if an index entry is removed at the same time as the >> checkout is narrowed? > > Hm, maybe something like this would help. Or maybe we should move the CE_UPDATE/CE_WT_REMOVE removal code into apply_sparse_checkout(). That function knows when checkout area is narrowed and CE_WT_REMOVE should not be removed in that case, regardless CE_REMOVE|CE_WT_REMOVE combination. -- Duy