From: Nicolas Pitre Date: Tue, 12 Jun 2012 19:09:25 GMT Subject: Re: Keeping unreachable objects in a separate pack instead of loose? Message-ID: In-Reply-To: On Tue, 12 Jun 2012, Andreas Schwab wrote: > Jeff King writes: > > > We could close it in both cases by tweaking the mtime of the file > > containing the object when we decide not to write because the object > > already exists. > > Though there is always the window between the existence check and the > mtime update where pruning can hit you. This is a tiny window compared to 2 weeks. This could be avoided entirely with: 1. check presence of object X 2. update its mtime 3. check presence of object X again 4. create if doesn't exist Nicolas