Re: [PATCH v2 2/2] list-objects: only look at cmdline trees with edge_hint

2014-01-21 Thread Junio C Hamano
Jeff King p...@peff.net writes: This tradeoff probably makes sense in the context of pack-objects, where we have set revs-edge_hint to have the traversal feed us the set of boundary objects. For a regular rev-list, though, it is probably not a good tradeoff. It is true that it makes our

[PATCH v2 2/2] list-objects: only look at cmdline trees with edge_hint

2014-01-20 Thread Jeff King
When rev-list is given a command-line like: git rev-list --objects $commit --not --all the most accurate answer is the difference between the set of objects reachable from $commit and the set reachable from all of the existing refs. However, we have not historically provided that answer,