Hi ,
I am trying to write a pre-recieve (preUpate) hook to get the Diff content for a commit and scan for the specific strings from the Diff using commitService.
commitService.streamDiff(new DiffRequest.Builder(repo, commitId).build(), new DiffContentCallback() { //implement methods that are called as the diff is streamed.
//grep specific string pattern });
However , I do not wish to scan on the entire Diff results from StreamDiff and want to exclude certain file with specific extentions (such as .json files)
Can you help me with some examples to achieve this
Thanks
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.