libgit2

git_remote_prune

Version:

Prune tracking refs that are no longer present on remote.

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

Signature

int git_remote_prune(git_remote *remote, const git_remote_callbacks *callbacks);

Parameters

In
remote

the remote to prune

In
callbacks

callbacks to use for this prune

Returns

int

0 or an error code

Versions