summaryrefslogtreecommitdiffstats
path: root/.gitattributes
blob: 3cf1b86fb8a2d244feb7805ecc60f4b621d0bf5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.git*            export-ignore
.hooks*          export-ignore
.clang-format    export-ignore
.clang-tidy      export-ignore
.codespellrc     export-ignore
.editorconfig    export-ignore
.pre-commit-config.yaml export-ignore
.typos.toml      export-ignore
sgconfig.yml     export-ignore

# Custom attribute to mark sources as using our C code style.
[attr]our-c-style  whitespace=tab-in-indent  format.clang-format=18

# Custom attribute to mark sources as generated.
# Do not perform whitespace checks.  Do not format.
[attr]generated  whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format

# Custom attribute to mark files as TABs indented.
[attr]tab-indent whitespace=-tab-in-indent

bootstrap        eol=lf
configure        eol=lf
*.[1-9]          eol=lf
*.bash           eol=lf
*.sh             eol=lf
*.sh.in          eol=lf

*.bat            eol=crlf
*.bat.in         eol=crlf
*.cmd            eol=crlf
*.sln            eol=crlf
*.vcproj         eol=crlf

Makefile         tab-indent
Makefile.in      tab-indent
NSIS.template.in tab-indent
coverage.xml.in  tab-indent
*.F              tab-indent
*.f              tab-indent
*.pbxproj.in     tab-indent
*.plist.in       tab-indent
*.plist          tab-indent
*.sln            tab-indent
*.s              tab-indent
*.vcproj         tab-indent
*.vcproj.in      tab-indent
*.vfproj.in      tab-indent
*.xib            tab-indent
*.make           tab-indent
.hooks-config    tab-indent

*.pfx            -text
*.png            -text
*.png.in         -text

*.c              our-c-style
*.cc             our-c-style
*.cpp            our-c-style
*.cu             our-c-style
*.cxx            our-c-style
*.H              our-c-style
*.h              our-c-style
*.hh             our-c-style
*.hip            our-c-style
*.hpp            our-c-style
*.hxx            our-c-style
*.notcu          our-c-style
*.tcc            our-c-style

*.cmake          whitespace=tab-in-indent
*.rst            whitespace=tab-in-indent conflict-marker-size=79
*.txt            whitespace=tab-in-indent