|
1 | | -############################################################################### |
2 | | -# Set default behavior to automatically normalize line endings. |
3 | | -############################################################################### |
4 | | -* text=auto |
| 1 | +# Common settings that generally should always be used with your language specific settings |
5 | 2 |
|
6 | | -############################################################################### |
7 | | -# Set default behavior for command prompt diff. |
| 3 | +# Auto detect text files and perform LF normalization |
| 4 | +# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/ |
| 5 | +* text=auto eol=lf |
| 6 | + |
| 7 | +# |
| 8 | +# The above will handle all files NOT found below |
8 | 9 | # |
9 | | -# This is need for earlier builds of msysgit that does not have it on by |
10 | | -# default for csharp files. |
11 | | -# Note: This is only used by command line |
12 | | -############################################################################### |
13 | | -#*.cs diff=csharp |
14 | | - |
15 | | -############################################################################### |
16 | | -# Set the merge driver for project and solution files |
| 10 | + |
| 11 | +# Code files |
| 12 | +*.cs text diff=csharp |
| 13 | +*.cshtml text diff=html |
| 14 | +*.csx text diff=csharp |
| 15 | + |
| 16 | +# Project files |
| 17 | +*.sln text eol=crlf |
| 18 | +*.csproj text eol=crlf |
| 19 | + |
| 20 | +# Documents |
| 21 | +*.bibtex text diff=bibtex |
| 22 | +*.doc diff=astextplain |
| 23 | +*.DOC diff=astextplain |
| 24 | +*.docx diff=astextplain |
| 25 | +*.DOCX diff=astextplain |
| 26 | +*.dot diff=astextplain |
| 27 | +*.DOT diff=astextplain |
| 28 | +*.pdf diff=astextplain |
| 29 | +*.PDF diff=astextplain |
| 30 | +*.rtf diff=astextplain |
| 31 | +*.RTF diff=astextplain |
| 32 | +*.md text |
| 33 | +*.tex text diff=tex |
| 34 | +*.adoc text |
| 35 | +*.textile text |
| 36 | +*.mustache text |
| 37 | +*.csv text |
| 38 | +*.tab text |
| 39 | +*.tsv text |
| 40 | +*.txt text |
| 41 | +*.sql text |
| 42 | + |
| 43 | +# Graphics |
| 44 | +*.png binary |
| 45 | +*.jpg binary |
| 46 | +*.jpeg binary |
| 47 | +*.gif binary |
| 48 | +*.tif binary |
| 49 | +*.tiff binary |
| 50 | +*.ico binary |
| 51 | +# SVG treated as an asset (binary) by default. |
| 52 | +*.svg text |
| 53 | +# If you want to treat it as binary, |
| 54 | +# use the following line instead. |
| 55 | +# *.svg binary |
| 56 | +*.eps binary |
| 57 | + |
| 58 | +# Scripts |
| 59 | +*.bash text eol=lf |
| 60 | +*.fish text eol=lf |
| 61 | +*.sh text eol=lf |
| 62 | +# These are explicitly windows files and should use crlf |
| 63 | +*.bat text eol=crlf |
| 64 | +*.cmd text eol=crlf |
| 65 | +*.ps1 text eol=crlf |
| 66 | + |
| 67 | +# Serialisation |
| 68 | +*.json text |
| 69 | +*.toml text |
| 70 | +*.xml text |
| 71 | +*.yaml text |
| 72 | +*.yml text |
| 73 | + |
| 74 | +# Archives |
| 75 | +*.7z binary |
| 76 | +*.gz binary |
| 77 | +*.tar binary |
| 78 | +*.tgz binary |
| 79 | +*.zip binary |
| 80 | + |
| 81 | +# Text files where line endings should be preserved |
| 82 | +*.patch -text |
| 83 | + |
17 | 84 | # |
18 | | -# Merging from the command prompt will add diff markers to the files if there |
19 | | -# are conflicts (Merging from VS is not affected by the settings below, in VS |
20 | | -# the diff markers are never inserted). Diff markers may cause the following |
21 | | -# file extensions to fail to load in VS. An alternative would be to treat |
22 | | -# these files as binary and thus will always conflict and require user |
23 | | -# intervention with every merge. To do so, just uncomment the entries below |
24 | | -############################################################################### |
25 | | -#*.sln merge=binary |
26 | | -#*.csproj merge=binary |
27 | | -#*.vbproj merge=binary |
28 | | -#*.vcxproj merge=binary |
29 | | -#*.vcproj merge=binary |
30 | | -#*.dbproj merge=binary |
31 | | -#*.fsproj merge=binary |
32 | | -#*.lsproj merge=binary |
33 | | -#*.wixproj merge=binary |
34 | | -#*.modelproj merge=binary |
35 | | -#*.sqlproj merge=binary |
36 | | -#*.wwaproj merge=binary |
37 | | - |
38 | | -############################################################################### |
39 | | -# behavior for image files |
| 85 | +# Exclude files from exporting |
40 | 86 | # |
41 | | -# image files are treated as binary by default. |
42 | | -############################################################################### |
43 | | -#*.jpg binary |
44 | | -#*.png binary |
45 | | -#*.gif binary |
46 | | - |
47 | | -############################################################################### |
48 | | -# diff behavior for common document formats |
49 | | -# |
50 | | -# Convert binary document formats to text before diffing them. This feature |
51 | | -# is only available from the command line. Turn it on by uncommenting the |
52 | | -# entries below. |
53 | | -############################################################################### |
54 | | -#*.doc diff=astextplain |
55 | | -#*.DOC diff=astextplain |
56 | | -#*.docx diff=astextplain |
57 | | -#*.DOCX diff=astextplain |
58 | | -#*.dot diff=astextplain |
59 | | -#*.DOT diff=astextplain |
60 | | -#*.pdf diff=astextplain |
61 | | -#*.PDF diff=astextplain |
62 | | -#*.rtf diff=astextplain |
63 | | -#*.RTF diff=astextplain |
| 87 | + |
| 88 | +.gitattributes export-ignore |
| 89 | +.gitignore export-ignore |
0 commit comments