Skip to content

LFS uploaded images should present 0 additions and 0 deletions statistics

Summary

Image LFS references are considered as text lines, therefore additions statistics is increased.

Screen_Shot_2018-10-09_at_16.44.09

Steps to reproduce

  1. Track a image with LFS
  2. Push to a merge request
  3. Open MR diffs

What is the current bug behavior?

You'll see 3 additions per image file.

What is the expected correct behavior?

0 additions per image file.

Possible fixes

There's a common interface for using the diff stat collection. I believe we could iterate on the collection (each method), adjusting by filetype (enforcing 0/0 statistics).

Edited by Oswaldo Ferreira