summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-04-13 23:19:38 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-25 12:39:11 +0200
commit7a520f5d8af2aedd5693bf7314527d76d9af2ef4 (patch)
treebcd87f54398650e3355e0bc34d23bbad0486c358 /include/git2/remote.h
parentf9f2344bd4ba6c81a96959509ba59f8563b60265 (diff)
downloadlibgit2-7a520f5d8af2aedd5693bf7314527d76d9af2ef4.tar.gz
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 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index e6537ec52..576f5841b 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -150,7 +150,7 @@ GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void
* @param filename where to store the temproray filename
* @return GIT_SUCCESS or an error code
*/
-GIT_EXTERN(int) git_remote_download(char **filename, git_remote *remote);
+GIT_EXTERN(int) git_remote_download(git_remote *remote, git_off_t *bytes, git_indexer_stats *stats);
/**
* Check whether the remote is connected