libgit2

git_remote_set_fetchspec

Version:

Set the remote's fetch refspec

Signature

int git_remote_set_fetchspec(git_remote *remote, const char *spec);

Parameters

In
remote

the remote \apram spec the new fetch refspec

const char *
In
spec

Returns

int

0 or an error value

Versions