refs: convert resolve_gitlink_ref to struct object_id