Convenience function to connect to a remote, download the data,
disconnect and update the remote-tracking branches.
@param remote the remote to fetch from
@param refspecs the refspecs to use for this fetch. Pass null or an
empty array to use the base refspecs.
@param opts options to use for this fetch
@param reflog_message The message to insert into the reflogs. If null, the
default is
"fetch"
@return 0 or an error code
Download new data and update tips
Convenience function to connect to a remote, download the data, disconnect and update the remote-tracking branches.
@param remote the remote to fetch from @param refspecs the refspecs to use for this fetch. Pass null or an empty array to use the base refspecs. @param opts options to use for this fetch @param reflog_message The message to insert into the reflogs. If null, the default is "fetch" @return 0 or an error code