Skip to content

Commit

Permalink
chore: add .gitattributes to normalize line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus committed Jan 16, 2025
1 parent ef0382c commit 84d6d5f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Auto detect text files and perform LF normalization.
* text=auto

# Always perform LF normalization on these files.
*.dart text
*.expect text
*.gradle text
*.golden text
*.html text
*.java text
*.json text
*.md text
*.mdx text
*.py text
*.sh text
*.txt text
*.xml text
*.yaml text

# Make sure that these Windows files always have CRLF line endings in checkout.
*.bat text eol=crlf
*.ps1 text eol=crlf
*.rc text eol=crlf
*.sln text eol=crlf
*.props text eol=crlf
*.vcxproj text eol=crlf
*.vcxproj.filters text eol=crlf
# Including templatized versions.
*.sln.tmpl text eol=crlf
*.props.tmpl text eol=crlf
*.vcxproj.tmpl text eol=crlf

# Never perform LF normalization on these files.
*.ico binary
*.jar binary
*.png binary
*.zip binary
2 changes: 1 addition & 1 deletion examples/com_interop/MySolution/MyLibrary/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;

namespace MyLibrary
{
Expand Down
2 changes: 1 addition & 1 deletion examples/com_interop/MySolution/MyLibrary/MyLibrary.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down
2 changes: 1 addition & 1 deletion examples/com_interop/MySolution/MySolution.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35327.3
Expand Down

0 comments on commit 84d6d5f

Please sign in to comment.