Skip to content

Commit 4c131fd

Browse files
committed
Add .gitattributes to properly track files
Copied from Microsoft/windows-driver-samples Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 2e189b0 commit 4c131fd

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

.gitattributes

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
# Declare files that will always have CRLF line endings on checkout.
7+
*.appxmanifest text eol=crlf
8+
*.c text eol=crlf
9+
*.cpp text eol=crlf
10+
*.cs text eol=crlf
11+
*.csproj text eol=crlf
12+
*.css text eol=crlf
13+
*.def text eol=crlf
14+
*.filters text eol=crlf
15+
*.h text eol=crlf
16+
*.htm text eol=crlf
17+
*.html text eol=crlf
18+
*.idl text eol=crlf
19+
*.js text eol=crlf
20+
*.jsproj text eol=crlf
21+
*.rc text eol=crlf
22+
*.rgs text eol=crlf
23+
*.sln text eol=crlf
24+
*.vcxproj text eol=crlf
25+
*.xaml text eol=crlf
26+
27+
# Declare files that are encoded in UTF-16
28+
*.inf text diff working-tree-encoding=UTF-16LE-BOM eol=crlf
29+
*.inx text diff working-tree-encoding=UTF-16LE-BOM eol=crlf
30+
31+
###############################################################################
32+
# Set default behavior for command prompt diff.
33+
#
34+
# This is need for earlier builds of msysgit that does not have it on by
35+
# default for csharp files.
36+
# Note: This is only used by command line
37+
###############################################################################
38+
*.cs diff=csharp
-4.63 KB
Binary file not shown.
-5.32 KB
Binary file not shown.

0 commit comments

Comments
 (0)