Implement a commit filtering API for RevWalk