File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Ensure consistent line endings across platforms
2
+ # All text files should use LF (Unix) line endings
3
+
4
+ # Default behavior: normalize line endings to LF on checkin,
5
+ # but allow platform-specific line endings on checkout
6
+ * text =auto
7
+
8
+ # Force LF line endings for specific file types that should always be consistent
9
+ * .go text eol =lf
10
+ * .yaml text eol =lf
11
+ * .yml text eol =lf
12
+ * .json text eol =lf
13
+ * .md text eol =lf
14
+ * .txt text eol =lf
15
+ * .sh text eol =lf
16
+
17
+ # Test data files should always use LF to match Go's YAML output
18
+ testdata /** /* .yaml text eol =lf
19
+ testdata /** /* .yml text eol =lf
20
+ testdata /** /* .json text eol =lf
21
+
22
+ # Binary files should not be normalized
23
+ * .png binary
24
+ * .jpg binary
25
+ * .jpeg binary
26
+ * .gif binary
27
+ * .ico binary
28
+ * .pdf binary
29
+ * .zip binary
30
+ * .tar.gz binary
You can’t perform that action at this time.
0 commit comments