diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-04-14 01:19:38 +0400 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-04-25 14:39:11 +0400 |
commit | 7a520f5d8af2aedd5693bf7314527d76d9af2ef4 (patch) | |
tree | bcd87f54398650e3355e0bc34d23bbad0486c358 /src/fetch.h | |
parent | f9f2344bd4ba6c81a96959509ba59f8563b60265 (diff) |
fetch: use the streaming indexer when downloading a pack
This changes the git_remote_download() API, but the existing one is
silly, so you don't get to complain.
The new API allows to know how much data has been downloaded, how many
objects we expect in total and how many we've processed.
Diffstat (limited to 'src/fetch.h')
-rw-r--r-- | src/fetch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fetch.h b/src/fetch.h index c1ab84034..03767be8d 100644 --- a/src/fetch.h +++ b/src/fetch.h @@ -10,9 +10,9 @@ #include "netops.h" int git_fetch_negotiate(git_remote *remote); -int git_fetch_download_pack(char **out, git_remote *remote); +int git_fetch_download_pack(git_remote *remote, git_off_t *bytes, git_indexer_stats *stats); -int git_fetch__download_pack(char **out, const char *buffered, size_t buffered_size, - GIT_SOCKET fd, git_repository *repo); +int git_fetch__download_pack(const char *buffered, size_t buffered_size, GIT_SOCKET fd, + git_repository *repo, git_off_t *bytes, git_indexer_stats *stats); #endif |