This adds a basic interface to fetch diff statistics given two SHAs. It's a requirement for #49399 #20282 and #19232.