Merge branch 'jt/has_object'
commitd1a8a8979d61a889b915dca36aea9c2a88d0f3f7
authorJunio C Hamano <gitster@pobox.com>
Thu, 13 Aug 2020 21:13:39 +0000 (13 14:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Aug 2020 21:13:39 +0000 (13 14:13 -0700)
tree02eece403714ca30f78b50c485e323db0ab44b97
parent092b6771c799d761a83317f68a467bef930686ad
parent9eb86f41de7d229bb3a073e16e735cf71e2ffe3b
Merge branch 'jt/has_object'

A new helper function has_object() has been introduced to make it
easier to mark object existence checks that do and don't want to
trigger lazy fetches, and a few such checks are converted using it.

* jt/has_object:
  fsck: do not lazy fetch known non-promisor object
  pack-objects: no fetch when allow-{any,promisor}
  apply: do not lazy fetch when applying binary
  sha1-file: introduce no-lazy-fetch has_object()
builtin/pack-objects.c
sha1-file.c