Re: [PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-07 Thread Jeff Hostetler
On 4/6/2017 6:48 PM, Stefan Beller wrote: On Thu, Apr 6, 2017 at 1:37 PM, wrote: From: Jeff Hostetler Teach traverse_trees_recursive() to not do redundant ODB lookups when both directories refer to the same OID. And the reason for this is

Re: [PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-07 Thread Jeff Hostetler
On 4/6/2017 8:32 PM, René Scharfe wrote: Am 06.04.2017 um 22:37 schrieb g...@jeffhostetler.com: From: Jeff Hostetler Teach traverse_trees_recursive() to not do redundant ODB lookups when both directories refer to the same OID. In operations such as read-tree,

Re: [PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-07 Thread Jeff Hostetler
On 4/7/2017 1:19 AM, Jeff King wrote: On Thu, Apr 06, 2017 at 03:48:07PM -0700, Stefan Beller wrote: On Thu, Apr 6, 2017 at 1:37 PM, wrote: From: Jeff Hostetler Teach traverse_trees_recursive() to not do redundant ODB lookups when both

Re: [PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-06 Thread Jeff King
On Thu, Apr 06, 2017 at 03:48:07PM -0700, Stefan Beller wrote: > On Thu, Apr 6, 2017 at 1:37 PM, wrote: > > From: Jeff Hostetler > > > > Teach traverse_trees_recursive() to not do redundant ODB > > lookups when both directories refer to the same

Re: [PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-06 Thread René Scharfe
Am 06.04.2017 um 22:37 schrieb g...@jeffhostetler.com: From: Jeff Hostetler Teach traverse_trees_recursive() to not do redundant ODB lookups when both directories refer to the same OID. In operations such as read-tree, checkout, and merge when the differences between

Re: [PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-06 Thread Stefan Beller
On Thu, Apr 6, 2017 at 1:37 PM, wrote: > From: Jeff Hostetler > > Teach traverse_trees_recursive() to not do redundant ODB > lookups when both directories refer to the same OID. And the reason for this is that omitting the second lookup saves

[PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-06 Thread git
From: Jeff Hostetler Teach traverse_trees_recursive() to not do redundant ODB lookups when both directories refer to the same OID. In operations such as read-tree, checkout, and merge when the differences between the commits are relatively small, there will likely be