-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy path.gitattributes
More file actions
17 lines (14 loc) · 938 Bytes
/
Copy path.gitattributes
File metadata and controls
17 lines (14 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Shell scripts must stay LF: with git's Windows default (core.autocrlf=true)
# they check out as CRLF and bash inside the build containers rejects them.
*.sh text eol=lf
# Vendored tree-sitter grammars — machine-generated, hide from stats and diffs
internal/cbm/vendored/grammars/**/parser.c linguist-generated=true diff=false
internal/cbm/vendored/grammars/**/scanner.c linguist-generated=true diff=false
# Shell entrypoints must check out LF everywhere: a CRLF shebang line breaks
# them under WSL/MSYS (`bash\r: no such file`). The *.sh rule covers scripts;
# the git hooks are extensionless and need explicit entries. (#1272)
scripts/git-hooks/commit-msg text eol=lf
scripts/hooks/pre-commit text eol=lf
# Chialisp grammar corpus: one case asserts CRLF comment termination, so this
# file must keep its exact bytes on every platform (no eol conversion). (#919)
tools/tree-sitter-chialisp/test/corpus/comments.txt -text