tree-sitter / tree-sitter

An incremental parsing system for programming tools

Home Page:https://tree-sitter.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should the `.gitattributes` template use `text=auto`?

DavisVaughan opened this issue · comments

Problem

i.e. see tree-sitter/tree-sitter-python#263 (comment) where we went from text to text=auto

This tweak will also have to be done for the other repos that have CRLF files, here are the others i found easily:

But that made me wonder if this template needs updating too
https://github.com/tree-sitter/tree-sitter/blob/master/cli/src/generate/templates/gitattributes

Steps to reproduce

NA

Expected behavior

Be able to do a clean clone of these repos without getting immediate diffs

Tree-sitter version (tree-sitter --version)

tree-sitter 0.22.5

Operating system/version

macOS 13.6.5

Similarly, should .editorconfig drop end_of_line = lf (as done in the PR that fixed that python issue)?

I've added the fix to #3284.