libgit2

git_refspec_src_matches_negative

Version:

Check if a refspec's source descriptor matches a negative reference

Signature

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