Skip to content

Add more behaviors for SQL/SQL Server database projects.#227

Open
alibaghernejad wants to merge 1 commit intogitattributes:masterfrom
alibaghernejad:alibaghernejad-moreSqlBehaviours
Open

Add more behaviors for SQL/SQL Server database projects.#227
alibaghernejad wants to merge 1 commit intogitattributes:masterfrom
alibaghernejad:alibaghernejad-moreSqlBehaviours

Conversation

@alibaghernejad
Copy link
Copy Markdown

Add more behaviors for SQL/SQL server database projects. to automatically normalize line endings.

Add more behaviors for SQL/SQL server database projects. to automatically normalize line endings.

# 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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would force crlf for even non-Windows users, so I don't think this line should have it.

Regarding, sql-specific files, should those have crlf or should this be chosen by the user?


# Project and solution files
*.sqlproj text eol=crlf
*.sln text eol=crlf
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDE-specific entries have their own files.
For example, for Visual Studio link.

This is the same organization scheme that gitignore is using, for example for Visual Studio link


# Pre and post-deployment scripts
*PreDeployment.sql text eol=crlf
*PostDeployment.sql text eol=crlf
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are already covered by *.sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants