Show byte difference for binary/non-diffable files in Commit view
What does this MR do and why?
Description
Renders the DiffStats component in the commit view in order to display byte difference in the file header.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Upload this test file (or any other non-diffable file)
- Make a change to the uploaded file
- Navigate to Repository > Commits > Select the most recent commit
- The diff stats should be displayed
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #331957
Edited by Jacques Erasmus