]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
apply: do not lazy fetch when applying binary
authorJonathan Tan <jonathantanmy@google.com>
Wed, 5 Aug 2020 23:06:50 +0000 (16:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Aug 2020 20:01:02 +0000 (13:01 -0700)
commit3318238db9498749db6d4feb7a804d366eccfa82
tree0e7cd4c057fa2365698296f7ef8f1fe02222b75c
parent1d8d9cb62099e1524ce1269ea88faad871c2197f
apply: do not lazy fetch when applying binary

When applying a binary patch, as an optimization, "apply" checks if the
postimage is already present. During this fetch, it is perfectly
expected for the postimage not to be present, so there is no need to
lazy-fetch missing objects. Teach "apply" not to lazy-fetch in this
case.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
t/t4150-am.sh