Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit c2aadf2

Browse files
committed
Merge pull request #2847 from gregg-miskelly/master
Add a gitattribute rule for .sh files
2 parents d6cf0da + 8bb3b73 commit c2aadf2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ indent_size = 2
2222
# Xml config files
2323
[*.{props,targets,config,nuspec}]
2424
indent_size = 2
25+
26+
# Shell scripts
27+
[*.sh]
28+
end_of_line = lf
29+
[*.{cmd, bat}]
30+
end_of_line = crlf

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@
6161
#*.PDF diff=astextplain
6262
#*.rtf diff=astextplain
6363
#*.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

0 commit comments

Comments
 (0)