Should the `.gitattributes` template use `text=auto`?
DavisVaughan opened this issue · comments
Davis Vaughan commented
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:
- https://github.com/tree-sitter/tree-sitter-bash/blob/master/.gitattributes
- https://github.com/tree-sitter/tree-sitter-c/blob/master/.gitattributes
- https://github.com/tree-sitter/tree-sitter-cpp/blob/master/.gitattributes
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
Davis Vaughan commented
Similarly, should .editorconfig
drop end_of_line = lf
(as done in the PR that fixed that python issue)?
ObserverOfTime commented
I've added the fix to #3284.