Create an iterator for the repo's references that match the specified glob
pointer in which to store the iterator
the repository
the glob to match against the reference names
0 or an error code