I want to check what files have been modified in current commit and base on that I want to modify or not specified file and add it to that commit.
I was thinking about using script on pretxncommit hook who gives me information that I need but I don't see any possible way to add new modified file to that commit.
Is there any way to do that?