Resolve "Repository API: Add indicator when diffs are omitted due to size limits"
- 
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo. 
What does this MR do and why?
This MR exposes an already implemented boolean too_large and collapsed to the GitLab Repository API when fetching file diffs. Both the boolean indicates whether the file diffs are excluded from response due to too many changes with the difference that if collapsed=true, then the file diffs can be fetched if requested, meanwhile if too_large=true, then the file diffs can not be retrieved. It also updated the specs and documentations accordingly.
Updated specs are:-
- spec/lib/api/entities/diff_spec.rb
- spec/graphql/types/diff_type_spec.rb
The above specs can be tested via bundle exec rspec <file_path>
References
Screenshots or screen recordings
| Before | After | 
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #547446 (closed)
Edited  by Samaksh Agarwal