diff options
author | Matthew DeVore <matvore@google.com> | 2018-10-17 17:39:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-18 12:49:18 +0900 |
commit | 8b10a206f090e01ce1ac4d9a10ec769e2409e2b0 (patch) | |
tree | 13308fe2d78d914e6e5548d144c4368b5980c471 /diff-delta.c | |
parent | filter-trees: code clean-up of tests (diff) | |
download | tgif-8b10a206f090e01ce1ac4d9a10ec769e2409e2b0.tar.xz |
list-objects: support for skipping tree traversal
The tree:0 filter does not need to traverse the trees that it has
filtered out, so optimize list-objects and list-objects-filter to skip
traversing the trees entirely. Before this patch, we iterated over all
children of the tree, and did nothing for all of them, which was
wasteful.
Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-delta.c')
0 files changed, 0 insertions, 0 deletions