How to get a list of changed files in a commit

git

#1

We have a rather big project, one of our tasks in the CI Pipeline is to make a coding style check. As this check always runs over the whole code base its taking quite long.

I want to get a list of changed/added files of this commit and limit the coding style check on this files.

Can someone give me some pointers how to proceed?

TIA
Rufinus


#2

Pinging with hope that someone will answer.


#3

Have you thought about using vanilla git to get the list of files that have changed in the commit?