I'm trying to get a list of the files that are different between the branch in execution of the Gitlab CI pipeline, and the ones on remote origin (called main).
I understand that when the gitlab CI pipeline runs, it does a clone of the specific branch, and it looks like it strips away all of the remote origins and branches?
So I do a git fetch to retrieve the remote branches, which nets me main (origin/main)
But from there I've tried every combination of git diff, git diff-tree, git diff merge-base, and I'm just getting nowhere, and fried.
Anyone got any tips?