Skip to content

Commit

Permalink
Update Git Attributes for JSON syntax highlighting in *.graphite fi…
Browse files Browse the repository at this point in the history
…les (#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
  • Loading branch information
spenserblack committed May 13, 2024
1 parent d0c493c commit 377b897
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
# The `eol=lf` sets the conversion to an LF line ending
# https://git-scm.com/docs/gitattributes
* 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

0 comments on commit 377b897

Please sign in to comment.