I have a particular file that I want users not allowed to checkin if the file has certain text in it. For example there is a file that users can make local changes to, the file is web.config. Now the users make changes to the file in order to set connections strings and the like for local testing. But when it comes time to commit, I dont want to let them commit the file if there are text strings that start with
<add key="OracleConnection" .....
<add key="OracleScheduleConnection" .....
<add key="OracleTennantPassword" .....
There are other strings as well, but I think you get the idea. Is there a way i can do this ?