libgit2

git_remote_download

Version:

Download the packfile

The packfile is downloaded with a temporary filename, as it's final name is not known yet. If there was no packfile needed (all the objects were available locally), filename will be NULL and the function will return success.

Signature

int git_remote_download(char **filename, git_remote *remote);

Parameters

char **
In
filename

where to store the temproray filename

In
remote

the remote to download from

Returns

int

GIT_SUCCESS or an error code

Versions