commit-reach: move commit_contains from ref-filter