Skip to content

Show byte difference for binary/non-diffable files in Commit view

Jacques Erasmus requested to merge 331957-show-byte-diff into master

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
Screenshot_2022-03-28_at_15.06.07 Screenshot_2022-03-28_at_15.05.49
Screenshot_2022-03-28_at_15.05.54

How to set up and validate locally

  1. Upload this test file (or any other non-diffable file)
  2. Make a change to the uploaded file
  3. Navigate to Repository > Commits > Select the most recent commit
  4. 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.

Related to #331957

Edited by Jacques Erasmus

Merge request reports

Loading