vendor/libgit2/src/pack-objects.h in rugged-0.19.0 vs vendor/libgit2/src/pack-objects.h in rugged-0.21.0

- old
+ new

@@ -12,12 +12,14 @@ #include "buffer.h" #include "hash.h" #include "oidmap.h" #include "netops.h" +#include "zstream.h" #include "git2/oid.h" +#include "git2/pack.h" #define GIT_PACK_WINDOW 10 /* number of objects to possibly delta against */ #define GIT_PACK_DEPTH 50 /* max delta depth */ #define GIT_PACK_DELTA_CACHE_SIZE (256 * 1024 * 1024) #define GIT_PACK_DELTA_CACHE_LIMIT 1000 @@ -51,10 +53,11 @@ struct git_packbuilder { git_repository *repo; /* associated repository */ git_odb *odb; /* associated object database */ git_hash_ctx ctx; + git_zstream zstream; uint32_t nr_objects, nr_alloc, nr_written, nr_remaining; @@ -76,9 +79,13 @@ uint64_t cache_max_small_delta_size; uint64_t big_file_threshold; uint64_t window_memory_limit; int nr_threads; /* nr of threads to use */ + + git_packbuilder_progress progress_cb; + void *progress_cb_payload; + double last_progress_report_time; /* the time progress was last reported */ bool done; }; int git_packbuilder_write_buf(git_buf *buf, git_packbuilder *pb);