command to get just the changed files from git and run in rubocop:
git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop