Detect .ply as binary #6974
Replies: 3 comments
-
Unfortunately, there is no way of marking a file as binary and this has nothing to do with Linguist which is only used to detect the language; GitHub does not read the binary git attribute. The closest you can get with Linguist is to mark the file as generated: *.ply linguist-generated This will only suppress the content in diffs and won't count the files towards the language statistics. That said, GitHub won't render the content of very large files in the diff by default anyway so the only benefit you'll get is the files won't be counted in the language stats. This won't however change the diff stats as these are based on the actual content of the file. Interestingly Linguist doesn't even know about this language so it won't appear in the language stats of a repo nor get syntax highlighting. If you've got the time, we're happy to accept a PR that adds support for the language and marks the files as generated by default. This |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Indeed. I stated this...
|
Beta Was this translation helpful? Give feedback.
-
PLY (file format)
Currently, there are over 50 thousand .ply files found on the GitHub code search. These are treated as code, and show up in statistics for lines added, pull request change sizes, and so on.
Even though the files can technically be ASCII, they are almost universally generated by 3D modeling programs as output, used by 3D rendering programs as input, and easily go up to millions of lines in length.
Unfortunately, even the various workarounds proposed in the documentation and other relevant issues do not help. The following attempted settings in
.gitattributes
have no effect.A pull request with some test models added shows up as 3 million lines of code added, potentially ruining any statistics and insights over time.
Beta Was this translation helpful? Give feedback.
All reactions