Update Git Attributes for JSON syntax highlighting in *.graphite files (#1752)

* Update Git Attributes for `*.graphite`

Adds syntax highlighting on GitHub and treats the files as generated/binary.

* Mark test Graphite files as *not* generated
This commit is contained in:
Spenser Black 2024-05-13 18:35:32 -04:00 committed by GitHub
parent d0c493cdb6
commit 377b8977b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
.gitattributes vendored
View file

@ -4,3 +4,7 @@
# The `eol=lf` sets the conversion to an LF line ending # The `eol=lf` sets the conversion to an LF line ending
# https://git-scm.com/docs/gitattributes # https://git-scm.com/docs/gitattributes
* text=auto eol=lf * text=auto eol=lf
# Adds syntax highlighting to Graphite files on GitHub and minimizes diffs both locally and on GitHub
*.graphite binary linguist-generated linguist-language=JSON
/node-graph/graphene-cli/test_files/*.graphite text diff -linguist-generated