Is there a way to see what would be pushed if I did a git push command?
What I\'m picturing is something like the \"Files Changed\" tab of Github\'s \"p
Just to add my two cents... I wanted to implement this when running jobs in a gitlab pipeline on a gitlab runner. The best way to do this was to use this script:
git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA
Also in my case I wanted to filter files by extension, to achieve this I used:
git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA '*.py'
After that you can for example forward this list somewhere else, a linter perhaps ;)
Hope this will help someone.