]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4067-diff-partial-clone.sh
diff: skip GITLINK when lazy fetching missing objs
authorJonathan Tan <jonathantanmy@google.com>
Tue, 20 Aug 2019 20:53:20 +0000 (13:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Aug 2019 22:04:26 +0000 (15:04 -0700)
commita63694f52355b412b65515961401cd2359fed544
tree1d944a7cff1b50468c94cfe03232f85cd7a0a079
parent75b2f01a0f642b39b0f29b6218515df9b5eb798e
diff: skip GITLINK when lazy fetching missing objs

In 7fbbcb21b1 ("diff: batch fetching of missing blobs", 2019-04-08),
diff was taught to batch the fetching of missing objects when operating
on a partial clone, but was not taught to refrain from fetching
GITLINKs. Teach diff to check if an object is a GITLINK before including
it in the set to be fetched.

(As stated in the commit message of that commit, unpack-trees was also
taught a similar thing prior, but unpack-trees correctly checks for
GITLINK before including objects in the set to be fetched.)

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4067-diff-partial-clone.sh