.gitattributes: Treat SVG as binary#21807
Conversation
This may not be fully accurate. But changes to an SVG file are usually better viewed with a graphical tool than a `diff` and contributor stats are really messed up with svg files being treated as text files.
crasbe
left a comment
There was a problem hiding this comment.
Perhaps you can (temporarily) add an .svg file to the PR to see if it works?
|
I already did add this commit to a PR that contained an SVG, but it did not work there. I assume that Github will not honor the |
|
Nope, the stats in Github are still considering SVG files as text files. Locally, it does work, though: |
|
I always liked that I could actually track changes to the SVG XML in Git... Can we revert this, especially after all it did not have the desired effect? Also, GitHub is very good with showing the graphical differences in a SVG. See, e.g., 3dec472 |
|
I honestly cannot tell if you are trolling with claiming to look on a text diff of an XML that elides all the relevant context and is tens of thousands of lines of code, or if that is a serious request. Please clarify. |
No, I am really looking at SVG diffs, especially if they are as cleaned up as most SVGs in the |
Contribution description
This may not be fully accurate. But changes to an SVG file are usually better viewed with a graphical tool than a
diffand contributor stats are really messed up with svg files being treated as text files.Testing procedure
In
masterThis PR
Issues/PRs references
This hopefully fixes misleading contribution stats showing many thousand lines of code changes when adding a new SVG file to the doc.