git_remote_download

Download and index the packfile

Connect to the remote if it hasn't been done yet, negotiate with the remote git which objects are missing, download and index the packfile.

The .idx file will be created and both it and the packfile with be renamed to their final name.

extern (C) nothrow @nogc
int
git_remote_download

Parameters

remote libgit2_d.types.git_remote*

the remote

refspecs const(libgit2_d.strarray.git_strarray)*

the refspecs to use for this negotiation and download. Use null or an empty array to use the base refspecs

opts const(.git_fetch_options)*

the options to use for this fetch

Return Value

Type: int

0 or an error code

Meta