diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-16 06:20:05 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 08:41:42 +0400 |
commit | d31402a3fc4aa1b7d48ba43fd3bb072e7d69a527 (patch) | |
tree | cc8eb1e1801c98c25349951d6cd3667d94d9ea19 /src/remote.c | |
parent | 71e33d2649f990086237a6cd0fdb7f7d6f742b51 (diff) |
remote: put the _download() callback with the others
The text progress and update_tips callbacks are already part of the
struct, which was meant to unify the callback setup, but the download
one was left out.
Diffstat (limited to 'src/remote.c')
-rw-r--r-- | src/remote.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/remote.c b/src/remote.c index 95b907ff1..e4696c4ec 100644 --- a/src/remote.c +++ b/src/remote.c @@ -742,10 +742,7 @@ static int remote_head_cmp(const void *_a, const void *_b) return git__strcmp_cb(a->name, b->name); } -int git_remote_download( - git_remote *remote, - git_transfer_progress_callback progress_cb, - void *progress_payload) +int git_remote_download(git_remote *remote) { int error; git_vector refs; @@ -767,7 +764,7 @@ int git_remote_download( if ((error = git_fetch_negotiate(remote)) < 0) return error; - return git_fetch_download_pack(remote, progress_cb, progress_payload); + return git_fetch_download_pack(remote); } static int remote_head_for_fetchspec_src(git_remote_head **out, git_vector *update_heads, const char *fetchspec_src) |