Merge branch 'jt/repack-promisor-packs'
authorJunio C Hamano <gitster@pobox.com>
Mon, 20 Aug 2018 18:33:55 +0000 (11:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Aug 2018 19:40:31 +0000 (12:40 -0700)
After a partial clone, repeated fetches from promisor remote would
have accumulated many packfiles marked with .promisor bit without
getting them coalesced into fewer packfiles, hurting performance.
"git repack" now learned to repack them.

* jt/repack-promisor-packs:
  repack: repack promisor objects if -a or -A is set
  repack: refactor setup of pack-objects cmd

1  2 
builtin/repack.c

@@@ -8,6 -8,7 +8,8 @@@
  #include "strbuf.h"
  #include "string-list.h"
  #include "argv-array.h"
+ #include "packfile.h"
++#include "object-store.h"
  
  static int delta_base_offset = 1;
  static int pack_kept_objects = -1;