forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
116 lines (101 loc) · 5.51 KB
/
.gitattributes
File metadata and controls
116 lines (101 loc) · 5.51 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# ──────────────────────────────────────────────────────────────
# 1. Normalize line endings
# = text=auto will convert CRLF to LF in the repo, and back to CRLF on checkout
# for Windows users. eol=lf forces LF on all platforms.
# ─────────────────────────────────────────────────────────────────
* text=auto
*.md text eol=lf
*.sh text eol=lf
*.ps1 text eol=crlf
*.bat text eol=crlf
*.cmd text eol=crlf
# ──────────────────────────────────────────────────────────────
# 2. Mark certain filetypes explicitly as binary
# ─────────────────────────────────────────────────────────────────
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.keystore binary
# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary
# Precompiled Headers
*.gch binary
*.pch binary
# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary
# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary
# Executables
*.exe binary
*.out binary
*.app binary
# ──────────────────────────────────────────────────────────────
# 3. Git LFS for large assets
# If you use Git LFS for large media or data files, enable it here.
# ─────────────────────────────────────────────────────────────────
# Archives
# *.7z filter=lfs diff=lfs merge=lfs -text
# *.br filter=lfs diff=lfs merge=lfs -text
# *.gz filter=lfs diff=lfs merge=lfs -text
# *.tar filter=lfs diff=lfs merge=lfs -text
# *.zip filter=lfs diff=lfs merge=lfs -text
# # Documents
# *.pdf filter=lfs diff=lfs merge=lfs -text
# # Images
# *.gif filter=lfs diff=lfs merge=lfs -text
# *.ico filter=lfs diff=lfs merge=lfs -text
# *.jpg filter=lfs diff=lfs merge=lfs -text
# *.png filter=lfs diff=lfs merge=lfs -text
# *.psd filter=lfs diff=lfs merge=lfs -text
# *.webp filter=lfs diff=lfs merge=lfs -text
# # Fonts
# *.ttf filter=lfs diff=lfs merge=lfs -text
# # Other
# *.exe filter=lfs diff=lfs merge=lfs -text
# ──────────────────────────────────────────────────────────────
# 4. Custom diff/merge drivers
# e.g. use a protobuf diff driver, or treat Unity scenes as binary
# ─────────────────────────────────────────────────────────────────
*.c text diff=cpp
*.cc text diff=cpp
*.cxx text diff=cpp
*.cpp text diff=cpp
*.cpi text diff=cpp
*.c++ text diff=cpp
*.hpp text diff=cpp
*.h text diff=cpp
*.h++ text diff=cpp
*.hh text diff=cpp
# ──────────────────────────────────────────────────────────────
# 5. Export‐ignore
# Exclude from `git archive` (useful for building tarballs)
# ─────────────────────────────────────────────────────────────────
docs/** export-ignore
tests/** export-ignore
.github/** export-ignore
# ──────────────────────────────────────────────────────────────
# 6. GitHub Linguist overrides
# Force certain files to count (or not) towards language stats
# ─────────────────────────────────────────────────────────────────
*.md linguist-documentation
*.yml linguist-language=YAML
*.ui linguist-generated
# ──────────────────────────────────────────────────────────────
# 7. Qt / CMake specifics
# Treat .ui & .qrc files as text (so merges and diffs make sense)
# ─────────────────────────────────────────────────────────────────
*.ui text
*.qrc text
CMakeLists.txt text=auto