libgit2

git_refspec_src_matches

Version:

Check if a refspec's source descriptor matches a reference

Signature

int git_refspec_src_matches(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

1 if the refspec matches, 0 otherwise

Versions