static int match_explicit_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail, struct refspec *rs, int rs_nr) { int i, errs; for (i = errs = 0; i < rs_nr; i++) errs += match_explicit(src, dst, dst_tail, &rs[i]); return errs; }
double match(iterator& begin, iterator end) { iterator current = begin; double result = match_explicit(current, end); if(result == 0.0) { current = begin; result = match_initializer(current, end); if(result == 0.0) { if(this->subparsers.size() == 1) { current = begin; result = match_params(current, end); } if(result == 0.0) return 0.0; } } traits.skip_space(current, end); begin = current; return result; }