Skip to content

Commit bb4ab0a

Browse files
Add gitattributes (#18)
* feat: Add .gitattributes * style: Format .gitattributes * style: Format .gitattributes
1 parent 1317cac commit bb4ab0a

1 file changed

Lines changed: 111 additions & 0 deletions

File tree

.gitattributes

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# -----------------------------------------------------------------------------
2+
# mcpp-community Git attributes
3+
#
4+
# This configuration is part of the mcpp-community style specification.
5+
# Repository:
6+
# https://github.com/mcpp-community/mcpp-style-ref
7+
#
8+
# This file ensures consistent line endings and Git behavior across platforms.
9+
# -----------------------------------------------------------------------------
10+
11+
# -----------------------------------------------------------------------------
12+
# Default text handling
13+
# -----------------------------------------------------------------------------
14+
15+
# Normalize text files and enforce LF line endings
16+
* text=auto eol=lf
17+
18+
# -----------------------------------------------------------------------------
19+
# Source code
20+
# -----------------------------------------------------------------------------
21+
22+
# C source files
23+
*.c text
24+
25+
# C++ source files
26+
*.cc text
27+
*.cpp text
28+
*.cxx text
29+
30+
# C headers
31+
*.h text
32+
33+
# C++ headers
34+
*.hpp text
35+
*.hxx text
36+
37+
# C++ module interface units
38+
*.cppm text
39+
*.ixx text
40+
*.mpp text
41+
42+
# -----------------------------------------------------------------------------
43+
# Build system
44+
# -----------------------------------------------------------------------------
45+
46+
# CMake scripts
47+
*.cmake text
48+
49+
# CMake entry file
50+
CMakeLists.txt text
51+
52+
# Makefile
53+
Makefile text
54+
55+
# -----------------------------------------------------------------------------
56+
# Documentation
57+
# -----------------------------------------------------------------------------
58+
59+
# Markdown files
60+
*.md text
61+
62+
# Plain text documentation
63+
*.txt text
64+
65+
# -----------------------------------------------------------------------------
66+
# Structured data
67+
# -----------------------------------------------------------------------------
68+
69+
# JSON configuration files
70+
*.json text
71+
72+
# YAML configuration files
73+
*.yml text
74+
75+
# YAML configuration files
76+
*.yaml text
77+
78+
# -----------------------------------------------------------------------------
79+
# Scripts
80+
# -----------------------------------------------------------------------------
81+
82+
# Shell scripts must use LF
83+
*.sh text eol=lf
84+
85+
# -----------------------------------------------------------------------------
86+
# Binary files
87+
# -----------------------------------------------------------------------------
88+
89+
# PNG images
90+
*.png binary
91+
92+
# JPEG images
93+
*.jpg binary
94+
95+
# JPEG images
96+
*.jpeg binary
97+
98+
# GIF images
99+
*.gif binary
100+
101+
# PDF files
102+
*.pdf binary
103+
104+
# ZIP archives
105+
*.zip binary
106+
107+
# TAR archives
108+
*.tar binary
109+
110+
# Gzip archives
111+
*.gz binary

0 commit comments

Comments
 (0)