Skip to content

Commit

Permalink
t fixed gitattributes
Browse files Browse the repository at this point in the history
fbshipit-source-id: aedb941ffe9ee2435fe5b5acd857b82ad6315733
  • Loading branch information
bigfootjon authored and facebook-github-bot committed Dec 21, 2023
1 parent da4835e commit 091de90
Showing 1 changed file with 41 additions and 47 deletions.
88 changes: 41 additions & 47 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,27 @@ Lib/test/sndhdrdata/sndhdr.* binary
PC/classicAppCompat.* binary

# Text files that should not be subject to eol conversion
[attr]noeol -text

Lib/test/cjkencodings/* noeol
Lib/test/tokenizedata/coding20731.py noeol
Lib/test/decimaltestdata/*.decTest noeol
Lib/test/test_email/data/*.txt noeol
Lib/test/test_importlib/resources/data01/* noeol
Lib/test/test_importlib/resources/namespacedata01/* noeol
Lib/test/xmltestdata/* noeol
Lib/test/cjkencodings/* -text
Lib/test/tokenizedata/coding20731.py -text
Lib/test/decimaltestdata/*.decTest -text
Lib/test/test_email/data/*.txt -text
Lib/test/test_importlib/resources/data01/* -text
Lib/test/test_importlib/resources/namespacedata01/* -text
Lib/test/xmltestdata/* -text

# Shell scripts should have LF even on Windows because of Cygwin
Lib/venv/scripts/common/activate text eol=lf
Lib/venv/scripts/posix/* text eol=lf

# CRLF files
[attr]dos text eol=crlf

*.bat dos
*.proj dos
*.props dos
*.ps1 dos
*.sln dos
*.vcxproj* dos
PC/readme.txt dos
PCbuild/readme.txt dos
*.bat text eol=crlf
*.proj text eol=crlf
*.props text eol=crlf
*.ps1 text eol=crlf
*.sln text eol=crlf
*.vcxproj* text eol=crlf
PC/readme.txt text eol=crlf
PCbuild/readme.txt text eol=crlf

# Language aware diff headers
# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
Expand All @@ -64,31 +60,29 @@ PCbuild/readme.txt dos
# To always hide generated files in local diffs, mark them as binary:
# $ git config diff.generated.binary true
#
[attr]generated linguist-generated=true diff=generated

**/clinic/*.c.h generated
*_db.h generated
Doc/data/stable_abi.dat generated
Doc/library/token-list.inc generated
Include/internal/pycore_ast.h generated
Include/internal/pycore_ast_state.h generated
Include/internal/pycore_opcode.h generated
Include/internal/pycore_*_generated.h generated
Include/opcode.h generated
Include/token.h generated
Lib/keyword.py generated
Lib/test/levenshtein_examples.json generated
Lib/test/test_stable_abi_ctypes.py generated
Lib/token.py generated
Objects/typeslots.inc generated
PC/python3dll.c generated
Parser/parser.c generated
Parser/token.c generated
Programs/test_frozenmain.h generated
Python/Python-ast.c generated
Python/generated_cases.c.h generated
Python/opcode_targets.h generated
Python/stdlib_module_names.h generated
Tools/peg_generator/pegen/grammar_parser.py generated
aclocal.m4 generated
configure generated
**/clinic/*.c.h linguist-generated=true diff=generated
*_db.h linguist-generated=true diff=generated
Doc/data/stable_abi.dat linguist-generated=true diff=generated
Doc/library/token-list.inc linguist-generated=true diff=generated
Include/internal/pycore_ast.h linguist-generated=true diff=generated
Include/internal/pycore_ast_state.h linguist-generated=true diff=generated
Include/internal/pycore_opcode.h linguist-generated=true diff=generated
Include/internal/pycore_*_generated.h linguist-generated=true diff=generated
Include/opcode.h linguist-generated=true diff=generated
Include/token.h linguist-generated=true diff=generated
Lib/keyword.py linguist-generated=true diff=generated
Lib/test/levenshtein_examples.json linguist-generated=true diff=generated
Lib/test/test_stable_abi_ctypes.py linguist-generated=true diff=generated
Lib/token.py linguist-generated=true diff=generated
Objects/typeslots.inc linguist-generated=true diff=generated
PC/python3dll.c linguist-generated=true diff=generated
Parser/parser.c linguist-generated=true diff=generated
Parser/token.c linguist-generated=true diff=generated
Programs/test_frozenmain.h linguist-generated=true diff=generated
Python/Python-ast.c linguist-generated=true diff=generated
Python/generated_cases.c.h linguist-generated=true diff=generated
Python/opcode_targets.h linguist-generated=true diff=generated
Python/stdlib_module_names.h linguist-generated=true diff=generated
Tools/peg_generator/pegen/grammar_parser.py linguist-generated=true diff=generated
aclocal.m4 linguist-generated=true diff=generated
configure linguist-generated=true diff=generated

0 comments on commit 091de90

Please sign in to comment.