GitLab
run pipeline on git push. While running this pipeline I would like get list of files which are going to be pushed from all commits if there are multiple commits happend.
I am trying to get using this command
git diff-tree --no-commit-id --name-only -r ${CI_COMMIT_SHA}
but this is giving only recent commit only. If there are more than one commit happend in the branch it is giving only last commit details. I would like to get all files which are committed during that push.
When git
is able to find all the files from multiple commits which it needs to push , how can not we?