Skip to content

Commit a6c9355

Browse files
dotnet-botsergiy-k
authored andcommitted
Add .gitattributes and .gitignore files
These files are needed so we have proper line endings (for example, for bash scripts) and so git would ignore some temporary local folders (for example, "bin") These files have been copied from the corefx repo (https://github.com/dotnet/corefx) based on the commit label dbb131dcafe570fd93824820797c88eb35609fc7.
1 parent ab64b61 commit a6c9355

File tree

2 files changed

+314
-0
lines changed

2 files changed

+314
-0
lines changed

.gitattributes

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
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
17+
#
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
40+
#
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
64+
65+
# Force bash scripts to always use lf line endings so that if a repro is accessed
66+
# in Unix via a file share from Windows, the scripts will work.
67+
*.sh text eol=lf

.gitignore

+247
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
syntax: glob
2+
3+
### VisualStudio ###
4+
5+
# User-specific files
6+
*.suo
7+
*.user
8+
*.userosscache
9+
*.sln.docstates
10+
11+
# Build results
12+
[Dd]ebug/
13+
[Dd]ebugPublic/
14+
[Rr]elease/
15+
[Rr]eleases/
16+
x64/
17+
x86/
18+
build/
19+
bld/
20+
[Bb]in/
21+
[Oo]bj/
22+
msbuild.log
23+
24+
# Visual Studio 2015
25+
.vs/
26+
27+
# Visual Studio 2015 Pre-CTP6
28+
*.sln.ide
29+
*.ide/
30+
31+
# MSTest test Results
32+
[Tt]est[Rr]esult*/
33+
[Bb]uild[Ll]og.*
34+
35+
#NUNIT
36+
*.VisualState.xml
37+
TestResult.xml
38+
39+
# Build Results of an ATL Project
40+
[Dd]ebugPS/
41+
[Rr]eleasePS/
42+
dlldata.c
43+
44+
*_i.c
45+
*_p.c
46+
*_i.h
47+
*.ilk
48+
*.meta
49+
*.obj
50+
*.pch
51+
*.pdb
52+
*.pgc
53+
*.pgd
54+
*.rsp
55+
*.sbr
56+
*.tlb
57+
*.tli
58+
*.tlh
59+
*.tmp
60+
*.tmp_proj
61+
*.log
62+
*.vspscc
63+
*.vssscc
64+
.builds
65+
*.pidb
66+
*.svclog
67+
*.scc
68+
69+
# Chutzpah Test files
70+
_Chutzpah*
71+
72+
# Visual C++ cache files
73+
ipch/
74+
*.aps
75+
*.ncb
76+
*.opensdf
77+
*.sdf
78+
*.cachefile
79+
80+
# Visual Studio profiler
81+
*.psess
82+
*.vsp
83+
*.vspx
84+
85+
# TFS 2012 Local Workspace
86+
$tf/
87+
88+
# Guidance Automation Toolkit
89+
*.gpState
90+
91+
# ReSharper is a .NET coding add-in
92+
_ReSharper*/
93+
*.[Rr]e[Ss]harper
94+
*.DotSettings.user
95+
96+
# JustCode is a .NET coding addin-in
97+
.JustCode
98+
99+
# TeamCity is a build add-in
100+
_TeamCity*
101+
102+
# DotCover is a Code Coverage Tool
103+
*.dotCover
104+
105+
# NCrunch
106+
_NCrunch_*
107+
.*crunch*.local.xml
108+
109+
# MightyMoose
110+
*.mm.*
111+
AutoTest.Net/
112+
113+
# Web workbench (sass)
114+
.sass-cache/
115+
116+
# Installshield output folder
117+
[Ee]xpress/
118+
119+
# DocProject is a documentation generator add-in
120+
DocProject/buildhelp/
121+
DocProject/Help/*.HxT
122+
DocProject/Help/*.HxC
123+
DocProject/Help/*.hhc
124+
DocProject/Help/*.hhk
125+
DocProject/Help/*.hhp
126+
DocProject/Help/Html2
127+
DocProject/Help/html
128+
129+
# Click-Once directory
130+
publish/
131+
132+
# Publish Web Output
133+
*.[Pp]ublish.xml
134+
*.azurePubxml
135+
*.pubxml
136+
*.publishproj
137+
138+
# NuGet Packages
139+
*.nupkg
140+
**/packages/*
141+
142+
# Windows Azure Build Output
143+
csx/
144+
*.build.csdef
145+
146+
# Windows Store app package directory
147+
AppPackages/
148+
149+
# Others
150+
*.Cache
151+
ClientBin/
152+
[Ss]tyle[Cc]op.*
153+
~$*
154+
*.dbmdl
155+
*.dbproj.schemaview
156+
*.pfx
157+
*.publishsettings
158+
node_modules/
159+
*.metaproj
160+
*.metaproj.tmp
161+
162+
# RIA/Silverlight projects
163+
Generated_Code/
164+
165+
# Backup & report files from converting an old project file
166+
# to a newer Visual Studio version. Backup files are not needed,
167+
# because we have git ;-)
168+
_UpgradeReport_Files/
169+
Backup*/
170+
UpgradeLog*.XML
171+
UpgradeLog*.htm
172+
173+
# SQL Server files
174+
*.mdf
175+
*.ldf
176+
177+
# Business Intelligence projects
178+
*.rdl.data
179+
*.bim.layout
180+
*.bim_*.settings
181+
182+
# Microsoft Fakes
183+
FakesAssemblies/
184+
185+
### MonoDevelop ###
186+
187+
*.pidb
188+
*.userprefs
189+
190+
### Windows ###
191+
192+
# Windows image file caches
193+
Thumbs.db
194+
ehthumbs.db
195+
196+
# Folder config file
197+
Desktop.ini
198+
199+
# Recycle Bin used on file shares
200+
$RECYCLE.BIN/
201+
202+
# Windows Installer files
203+
*.cab
204+
*.msi
205+
*.msm
206+
*.msp
207+
208+
# Windows shortcuts
209+
*.lnk
210+
211+
### Linux ###
212+
213+
*~
214+
215+
# KDE directory preferences
216+
.directory
217+
218+
### OSX ###
219+
220+
.DS_Store
221+
.AppleDouble
222+
.LSOverride
223+
224+
# Icon must end with two \r
225+
Icon
226+
227+
# Thumbnails
228+
._*
229+
230+
# Files that might appear on external disk
231+
.Spotlight-V100
232+
.Trashes
233+
234+
# Directories potentially created on remote AFP share
235+
.AppleDB
236+
.AppleDesktop
237+
Network Trash Folder
238+
Temporary Items
239+
.apdisk
240+
241+
# vim temporary files
242+
[._]*.s[a-w][a-z]
243+
[._]s[a-w][a-z]
244+
*.un~
245+
Session.vim
246+
.netrwhist
247+
*~

0 commit comments

Comments
 (0)