From: Junio C Hamano Date: Tue, 28 Jul 2015 20:04:39 GMT Subject: Re: [PATCH] cache-tree: populate cache-tree on successful merge Message-ID: In-Reply-To: Junio C Hamano writes: > David Turner writes: > >> The work done to produce the cache-tree is work that the commit would >> otherwise have to do. So we're spending extra time in one place to >> eliminate that work in a different place. > > Good point. Thanks. Hmm, I forgot about another codepath. What about operations that are purely done to pouplate the index, without necessarily creating a tree out of the index? The most worrisome is "git checkout $branch" (two-tree merge).