vendor/libgit2/src/pack-objects.h in rugged-0.22.2 vs vendor/libgit2/src/pack-objects.h in rugged-0.23.0b1

- old
+ new

@@ -13,10 +13,11 @@ #include "buffer.h" #include "hash.h" #include "oidmap.h" #include "netops.h" #include "zstream.h" +#include "pool.h" #include "git2/oid.h" #include "git2/pack.h" #define GIT_PACK_WINDOW 10 /* number of objects to possibly delta against */ @@ -48,10 +49,16 @@ recursing:1, tagged:1, filled:1; } git_pobject; +typedef struct { + git_oid id; + unsigned int uninteresting:1, + seen:1; +} git_walk_object; + struct git_packbuilder { git_repository *repo; /* associated repository */ git_odb *odb; /* associated object database */ git_hash_ctx ctx; @@ -63,9 +70,12 @@ nr_remaining; git_pobject *object_list; git_oidmap *object_ix; + + git_oidmap *walk_objects; + git_pool object_pool; git_oid pack_oid; /* hash of written pack */ /* synchronization objects */ git_mutex cache_mutex;