commit-reach: move ref_newer from remote.c