Skip to content

Detect .ply as binary #6974

Answered by lildude
Walther asked this question in Classification
Discussion options

You must be logged in to vote

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 eve…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lildude
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6973 on July 30, 2024 09:37.