Diffstat command not found in API 2.0

Issue #15511 open
Yuvam Jain
created an issue

Unable to fetch the list of modified files and their individual changes in API version 2.0 as we can see the same requirement completed in API 1.0 using diffstat command.

Please suggest the way to find the stats of a commit in API 2.0

or API 2.0 should include diff and diffstat for getting JSON output instead of raw text.