libgit2

git_remote_add_fetch

Version:

Add a fetch refspec to the remote

Convenience function for adding a single fetch refspec to the current list in the remote.

Signature

int git_remote_add_fetch(git_remote *remote, const char *refspec);

Parameters

In
remote

the remote

const char *
In
refspec

the new fetch refspec

Returns

int

0 or an error value

Versions