I need a git diff of the files that have changed between my feature branch and
develop. The list of changed files is fed into the rubocop linter to check for violations being pushed out with this branch.
When I run the following command locally, it returns a list of the changed files between HEAD and my develop branch:
git diff develop HEAD --name-only | egrep '.+/.+.rb'
When I run this on CircleCI (either as part of a job, or via SSH), the
git-diff command returns no content.
Can anyone offer any insight into what I’m doing wrong?