Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×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