How to detect commited file at test phase

find -mmin -1 will show all files because the entire repository is checked out at the beginning of the build. Git is what contains the information on what is changing for your project. The following command would give you a newline separated list of each file involved in the last commit (HEAD) in the build:

git diff-tree --no-commit-id --name-only -r HEAD

3 Likes