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.

extern (C) nothrow @nogc
int
git_remote_fetch

Parameters

remote libgit2_d.types.git_remote*

the remote to fetch from

refspecs const(libgit2_d.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

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