]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rev-list.c
rev-list: handle missing tree objects properly
authorMatthew DeVore <matvore@google.com>
Fri, 5 Oct 2018 21:31:23 +0000 (14:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Oct 2018 23:55:00 +0000 (08:55 +0900)
commit7c0fe330d5f3d2fc7aac57a19c7580ea2543c799
tree715ad64110c66efc978120aaab51c5a875dc4911
parentf1d02daacfe657fd175634174b4928a645d537f4
rev-list: handle missing tree objects properly

Previously, we assumed only blob objects could be missing. This patch
makes rev-list handle missing trees like missing blobs. The --missing=*
and --exclude-promisor-objects flags now work for trees as they already
do for blobs. This is demonstrated in t6112.

Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c
list-objects.c
revision.h
t/t0410-partial-clone.sh
t/t5317-pack-objects-filter-objects.sh
t/t6112-rev-list-filters-objects.sh