summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-12-06 23:09:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-12-06 23:09:22 (GMT)
commit403ac1381cc8bed5e02963a955f2a2a626620eaa (patch)
tree0d6d17741187a8b324e7484be00ff5e65def5f30 /send-pack.c
parentf0cf2fee5d37384d5650477e6bdca2be68075042 (diff)
parent5cf7a17dfbe60ea3cfb32ace7264edc3ad97611b (diff)
downloadgit-403ac1381cc8bed5e02963a955f2a2a626620eaa.zip
git-403ac1381cc8bed5e02963a955f2a2a626620eaa.tar.gz
git-403ac1381cc8bed5e02963a955f2a2a626620eaa.tar.bz2
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
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index a7322d3..0407841 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -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)