Make rev-list --objects work together with pathspecs