Skip to content

Commit

Permalink
Merge branch 'jk/send-pack-check-negative-with-quick'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Dec 6, 2019
2 parents f0cf2fe + 5cf7a17 commit 403ac13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 403ac13

Please sign in to comment.