libgit2

git_refspec_dst_matches

Version:

Check if a refspec's destination descriptor matches a reference

Signature

int git_refspec_dst_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