libgit2

git_refspec_src_match

Version:

Match a refspec's source descriptor with a reference name

Signature

int git_refspec_src_match(const git_refspec *refspec, const char *refname);

Parameters

In
refspec

the refspec

const char *
In
refname

the name of the reference to check

Returns

int

GIT_SUCCESS on successful match; GIT_ENOMACH on match failure or an error code on other failure

Versions