I'm trying to list as last changes that were sent to a branch develop, for this I execute the git log --pretty='format:%H' --after='${formatYesterday}' --before='${formatToday} and I get the hash of the last changes in the last 24 hours, then with a list of several hashes I trying the git diff --name-only ${GIT_LIST_COMMITS[cont]} to list the changed/deleted/deleted files in the commit But, in tests this already worked and a few days later it does not work(does not list files) anymore (in Jenkins and Git Bash).
In short: I need to list the files changed by the hash and this is not working.
Is Git failing or am I using GIT DIFF incorrectly?