Skip to content

Commit

Permalink
chore: add .gitattributes for generated files (#68)
Browse files Browse the repository at this point in the history
Problem: parser updates generate huge meaningless diffs for generated
files.

Solution: mark them as "generated" in `.gitattributes` so commit views
don't show these diffs by default.
  • Loading branch information
clason authored Jan 2, 2023
1 parent 61c7505 commit 9dee68e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
src/keywords.h linguist-generated
src/parser.c linguist-generated
src/grammar.json linguist-generated
src/node-types.json linguist-generated
src/tree_sitter/** linguist-generated
package-lock.json linguist-generated
binding.gyp linguist-generated
bindings/** linguist-generated

0 comments on commit 9dee68e

Please sign in to comment.