git_remote_fetch

Download new data and update tips.

Convenience function to connect to a remote, download the data, disconnect and update the remote-tracking branches.

If options are specified and this remote is already connected then the existing remote connection options will be discarded and the remote will now use the new options.

extern (C) nothrow @nogc public
int
git_remote_fetch

Parameters

remote libgit2.types.git_remote*

the remote to fetch from

refspecs const(libgit2.strarray.git_strarray)*

the refspecs to use for this fetch. Pass null or an empty array to use the base refspecs.

opts const(.git_fetch_options)*

options to use for this fetch or null

reflog_message const(char)*

The message to insert into the reflogs. If null, the default is "fetch"

Return Value

Type: int

0 or an error code

Meta