[generated files] Support generated file detection for diff files from repository
Collapsing generated files will work mostly when !139210 (merged) gets merged. It only works when the diff is stored in the database meaning Show whitespace changes
option is enabled. We need to make it work when we load the diff directly from repository as well. I believe we'd need to support this in Commit diffs as well.
Related to #391776 (closed)