Add support for checking added or modified files in a Git repo

This PR adds support for running RuboCop against all added or modified files in a local Git repo. Useful as a manual pre-commit check.