diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-04 22:42:58 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:08 +0200 |
| commit | 48a65a071d9d6689a0ebb7891a20e8dab5fd3cdd (patch) | |
| tree | 872610c01b47d1b47029bf465e7efb4658f45306 /src/remote.c | |
| parent | 9cf0f287bb0ece488c9e0a169b3f806a4a9701eb (diff) | |
| download | libgit2-48a65a071d9d6689a0ebb7891a20e8dab5fd3cdd.tar.gz | |
Only wait for pack if we need it
Provide the git_remote_download function to instruct the library to
downlad the packfile and let the user know the temporary location.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index 07628d8d0..75f2dc700 100644 --- a/src/remote.c +++ b/src/remote.c @@ -208,6 +208,11 @@ int git_remote_negotiate(git_remote *remote) return git_fetch_negotiate(remote); } +int git_remote_download(char **filename, git_remote *remote) +{ + return git_fetch_download_pack(filename, remote); +} + git_headarray *git_remote_tips(git_remote *remote) { return &remote->refs; |
