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
index 6c636e159eaf2d67d617c459aceddd7423e326ab,5c97dec3dbb7691436f19d0772313cadaf7c018d..d5886039cc6656609962fd522a27f61eda6cd0ec
@@@ -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;