Hi,
My requirement is to write a pre-receive hook which looks for a particular "Text" in changes of a commit and rejects the commit if "Text" is found.
How do I accomplish this? I saw there is streamDiff() method but I couldn't find any examples regarding how to use Callback functionality.
I am writing the pre-receive hook using ScriptRunner in groovy.
Any example would be highly appreciated. Thanks