How to disable sending part of the code by mail?

How to disable sending part of the code by mail?
For example, code differences in merge requests.
It is necessary to disable the parsing of any part of the code.