vendor/libgit2/src/odb_pack.c in rugged-0.28.5 vs vendor/libgit2/src/odb_pack.c in rugged-0.99.0

- old
+ new

@@ -9,11 +9,11 @@ #include <zlib.h> #include "git2/repository.h" #include "git2/indexer.h" #include "git2/sys/odb_backend.h" -#include "fileops.h" +#include "futils.h" #include "hash.h" #include "odb.h" #include "delta.h" #include "sha1_lookup.h" #include "mwindow.h" @@ -483,20 +483,20 @@ } return 0; } -static int pack_backend__writepack_append(struct git_odb_writepack *_writepack, const void *data, size_t size, git_transfer_progress *stats) +static int pack_backend__writepack_append(struct git_odb_writepack *_writepack, const void *data, size_t size, git_indexer_progress *stats) { struct pack_writepack *writepack = (struct pack_writepack *)_writepack; assert(writepack); return git_indexer_append(writepack->indexer, data, size, stats); } -static int pack_backend__writepack_commit(struct git_odb_writepack *_writepack, git_transfer_progress *stats) +static int pack_backend__writepack_commit(struct git_odb_writepack *_writepack, git_indexer_progress *stats) { struct pack_writepack *writepack = (struct pack_writepack *)_writepack; assert(writepack); @@ -514,10 +514,10 @@ } static int pack_backend__writepack(struct git_odb_writepack **out, git_odb_backend *_backend, git_odb *odb, - git_transfer_progress_cb progress_cb, + git_indexer_progress_cb progress_cb, void *progress_payload) { git_indexer_options opts = GIT_INDEXER_OPTIONS_INIT; struct pack_backend *backend; struct pack_writepack *writepack;