libgit2

git_refspec_parse

Version:

Parse a given refspec string

Signature

int git_refspec_parse(git_refspec **refspec, const char *input, int is_fetch);

Parameters

In
refspec

a pointer to hold the refspec handle

const char *
In
input

the refspec string

int
In
is_fetch

is this a refspec for a fetch

Returns

int

0 if the refspec string could be parsed, -1 otherwise

Versions