Match a refspec's source descriptor with a reference name
the refspec
the name of the reference to check
GIT_SUCCESS on successful match; GIT_ENOMACH on match failure or an error code on other failure