Showing images diffs in lfs?

I have a .gitattributes file:

* text eol=lf
*.bat eol=crlf
*.ico binary
*.jar binary
*.png binary
*.jpg binary
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
*.otf binary

# Images & videos
backstop_data/bitmaps_reference/* filter=lfs diff=lfs merge=lfs -text

From what I understand, this would let all the files under backstop_data/... be handled by gitlab-lfs. Now, the images files in there don’t show anymore when diffing, becuase the diff was suppressed by a .gitattributes entry:

That entry must be the last line: backstop_data/bitmaps_reference/* filter=lfs diff=lfs merge=lfs -text. Is there a way to make make MRs still show images diffs while using LFS to handle them?

1 Like