diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-21 10:33:30 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-22 11:25:14 +0000 |
| commit | a1ef995dc03379fb1f5151b5d98d16644218c95e (patch) | |
| tree | f209958f5f27dfbe3dc2da296c801563a348cce4 /examples/index-pack.c | |
| parent | 975d6722a5c203427ab63789d329c00b76461225 (diff) | |
| download | libgit2-a1ef995dc03379fb1f5151b5d98d16644218c95e.tar.gz | |
indexer: use git_indexer_progress throughout
Update internal usage of `git_transfer_progress` to
`git_indexer_progreses`.
Diffstat (limited to 'examples/index-pack.c')
| -rw-r--r-- | examples/index-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/index-pack.c b/examples/index-pack.c index df11177c6..641587ee3 100644 --- a/examples/index-pack.c +++ b/examples/index-pack.c @@ -20,7 +20,7 @@ * This could be run in the main loop whilst the application waits for * the indexing to finish in a worker thread */ -static int index_cb(const git_transfer_progress *stats, void *data) +static int index_cb(const git_indexer_progress *stats, void *data) { (void)data; printf("\rProcessing %d of %d", stats->indexed_objects, stats->total_objects); @@ -31,7 +31,7 @@ static int index_cb(const git_transfer_progress *stats, void *data) int lg2_index_pack(git_repository *repo, int argc, char **argv) { git_indexer *idx; - git_transfer_progress stats = {0, 0}; + git_indexer_progress stats = {0, 0}; int error; char hash[GIT_OID_HEXSZ + 1] = {0}; int fd; |
