Skip to content

Commit 403ac13

Browse files
committed
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
2 parents f0cf2fe + 5cf7a17 commit 403ac13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

send-pack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ int option_parse_push_signed(const struct option *opt,
4141
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
4242
{
4343
if (negative &&
44-
!has_object_file_with_flags(oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
44+
!has_object_file_with_flags(oid,
45+
OBJECT_INFO_SKIP_FETCH_OBJECT |
46+
OBJECT_INFO_QUICK))
4547
return;
4648

4749
if (negative)

0 commit comments

Comments
 (0)