Check if a file was changed in during commit in git

Is there any git command which allows to check if a file was changed during last commit?

I'd like to check if a file which contains a version number was updated, otherwise the dev shall receive a warning not to release the software to an integration environment before a the version was bumped up.