We’re using a monorepo setup and I’m trying to list all the top level directories that have changed.
There is a recommendation online to compare git diffs and get the dirs from that, but it only checks the last commit. We need to check all commits since the branch diverged from master.
I have git diff --name-only HEAD..master | grep '/' | cut -d'/' -f1 | sed '/^\.circleci$/d' | uniq
which works on my local machine. But on circle they are seen as the same thing and therefore there is no diff.
Why is this and is there a way to get around it?