1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00

Add more behaviors for SQL/SQL server database projects.

Add more behaviors for SQL/SQL server database projects. to automatically normalize line endings.
This commit is contained in:
Ali Baghernejad 2024-07-01 19:43:34 +03:30 committed by GitHub
parent 4b01243cf0
commit c8dc520973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,30 @@
# Basic .gitattributes for sql files
# Basic .gitattributes for SQL files
*.sql linguist-detectable=true
*.sql linguist-language=sql
# Handle line endings automatically for files detected as text
# and treat them as LF on check-in and CRLF when checked out.
* text=auto eol=crlf
# SQL files should be detected as text.
*.sql text eol=crlf
# Project and solution files
*.sqlproj text eol=crlf
*.sln text eol=crlf
# Pre and post-deployment scripts
*PreDeployment.sql text eol=crlf
*PostDeployment.sql text eol=crlf
# Model and schema files
*.dbmdl text eol=crlf
*.dbschema text eol=crlf
# DACPAC files should be treated as binary.
*.dacpac binary
# Ignore files generated by SQL Server Management Studio (SSMS)
*.jfm binary
*.jtp binary