1
- * text =auto eol =lf
2
- * .{cmd, [cC ][mM ][dD ]} text eol =crlf
3
- * .{bat, [bB ][aA ][tT ]} text eol =crlf
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # Normalize line endings
3
+ # - text=auto will convert CRLF to LF in the repo, and back to CRLF on checkout for Windows users
4
+ # - eol=lf forces LF on all platforms.
5
+ # ─────────────────────────────────────────────────────────────────
4
6
5
- * .bin binary
7
+ * text = auto
6
8
7
- .gitignore export-ignore
8
- .gitattributes export-ignore
9
+ * .md text eol =lf
10
+ * .sh text eol =lf
11
+
12
+ * .ps1 text eol =crlf
13
+ * .bat text eol =crlf
14
+ * .cmd text eol =crlf
15
+
16
+ # ─────────────────────────────────────────────────────────────────
17
+ # Mark certain filetypes explicitly as binary
18
+ # ─────────────────────────────────────────────────────────────────
19
+ * .png binary
20
+ * .jpg binary
21
+ * .jpeg binary
22
+ * .gif binary
23
+ * .ico binary
24
+ * .pdf binary
25
+ * .zip binary
26
+
27
+ # Compiled Object files
28
+ * .slo binary
29
+ * .lo binary
30
+ * .o binary
31
+ * .obj binary
32
+
33
+ # Precompiled Headers
34
+ * .gch binary
35
+ * .pch binary
36
+
37
+ # Compiled Dynamic libraries
38
+ * .so binary
39
+ * .dylib binary
40
+ * .dll binary
41
+
42
+ # Compiled Static libraries
43
+ * .lai binary
44
+ * .la binary
45
+ * .a binary
46
+ * .lib binary
47
+
48
+ # Executables
49
+ * .exe binary
50
+ * .out binary
51
+ * .app binary
52
+
53
+ # ─────────────────────────────────────────────────────────────────
54
+ # Custom diff/merge drivers
55
+ # ─────────────────────────────────────────────────────────────────
56
+ * .c text diff =cpp
57
+ * .cc text diff =cpp
58
+ * .cxx text diff =cpp
59
+ * .cpp text diff =cpp
60
+ * .cpi text diff =cpp
61
+ * .c++ text diff =cpp
62
+ * .hpp text diff =cpp
63
+ * .h text diff =cpp
64
+ * .h++ text diff =cpp
65
+ * .hh text diff =cpp
66
+
67
+ # ─────────────────────────────────────────────────────────────────
68
+ # Export‐ignore
69
+ # - This excludes from `git archive` (useful when building tarballs)
70
+ # ─────────────────────────────────────────────────────────────────
71
+ .gitignore export-ignore
72
+ docs /** export-ignore
73
+ tests /** export-ignore
74
+ .github /** export-ignore
75
+ .vscode /** export-ignore
76
+
77
+ # ─────────────────────────────────────────────────────────────────
78
+ # GitHub Linguist overrides
79
+ # - This forces files to count (or not) towards language stats.
80
+ # ─────────────────────────────────────────────────────────────────
81
+ * .md linguist-documentation
82
+ * .yml linguist-language =YAML
83
+ * .ui linguist-generated
84
+
85
+ # ─────────────────────────────────────────────────────────────────
86
+ # Qt specific
87
+ # Treat .ui & .qrc files as text (so merges and diffs make sense)
88
+ # ─────────────────────────────────────────────────────────────────
89
+ * .ui text
90
+ * .qrc text
91
+
92
+ # ─────────────────────────────────────────────────────────────────
93
+ # CMake specific
94
+ # ─────────────────────────────────────────────────────────────────
95
+ CMakeLists.txt text =auto
0 commit comments