libgit2

git_remote_update_tips

Version:

Update the tips to the new state.

If callbacks are not specified then the callbacks specified to git_remote_connect will be used (if it was called).

Signature

int git_remote_update_tips(git_remote *remote, const git_remote_callbacks *callbacks, int update_fetchhead, git_remote_autotag_option_t download_tags, const char *reflog_message);

Parameters

In
remote

the remote to update

In
callbacks

pointer to the callback structure to use or NULL

int
In
update_fetchhead

whether to write to FETCH_HEAD. Pass 1 to behave like git.

In
download_tags

what the behaviour for downloading tags is for this fetch. This is ignored for push. This must be the same value passed to git_remote_download().

const char *
In
reflog_message

The message to insert into the reflogs. If NULL and fetching, the default is "fetch <name>", where <name> is the name of the remote (or its url, for in-memory remotes). This parameter is ignored when pushing.

Returns

int

0 or an error code

Versions