How to get a list of changed files in a commit

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

Pinging with hope that someone will answer.

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

1 Like