Merge branch 'jk/send-pack-check-negative-with-quick'
Performance tweak on "git push" into a repository with many refs that point at objects we have never heard of. * jk/send-pack-check-negative-with-quick: send-pack: use OBJECT_INFO_QUICK to check negative objects
This commit is contained in:
commit
403ac1381c
@ -41,7 +41,9 @@ int option_parse_push_signed(const struct option *opt,
|
||||
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
|
||||
{
|
||||
if (negative &&
|
||||
!has_object_file_with_flags(oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
|
||||
!has_object_file_with_flags(oid,
|
||||
OBJECT_INFO_SKIP_FETCH_OBJECT |
|
||||
OBJECT_INFO_QUICK))
|
||||
return;
|
||||
|
||||
if (negative)
|
||||
|
Loading…
Reference in New Issue
Block a user