Pass a (ref_cache *) to the resolve_gitlink_*() helper functions