Re: [PATCH] cache-tree: populate cache-tree on successful merge
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 28, 2015, 20:04 UTC
- Message-ID
- <xmqq1tfsdp60.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <xmqq6154dpkt.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
> David Turner <dturner@twopensource.com> 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).