Re: [PATCH 1/3] Fix sparse checkout not removing files from index
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Jul 31, 2010, 03:28 UTC
- Message-ID
- <AANLkTi=n-LYGiYw=g4QsO=9GtvzHc8Vn=m99pcDR5r00@mail.gmail.com>
- In-Reply-To
- <20100731010439.GB5817@burratino>
On Sat, Jul 31, 2010 at 11:04 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 6 quoted lines
> 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