-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
69 lines (58 loc) · 1.77 KB
/
Copy path.gitattributes
File metadata and controls
69 lines (58 loc) · 1.77 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
# ==============================================================================
# .gitattributes — Enforce consistent line endings across platforms
#
# Place this file at the repo root (MACOS_resources/.gitattributes).
#
# * text=auto tells git to auto-detect text files and normalize them.
# Specific rules below enforce LF for file types where CRLF on Linux
# causes build failures (e.g. awk scripts, Fortran sources, shell scripts).
#
# This file overrides each developer's local core.autocrlf setting,
# ensuring consistent line endings regardless of the platform used to commit.
# ==============================================================================
# Auto-detect all text files and normalize line endings
* text=auto
# Shell and awk scripts — must be LF on Linux or they fail to execute
*.sh text eol=lf
*.awk text eol=lf
*.dfa text eol=lf
# Fortran sources
*.F text eol=lf
*.F90 text eol=lf
*.f text eol=lf
*.f90 text eol=lf
# C/C++ sources and headers
*.c text eol=lf
*.h text eol=lf
*.cpp text eol=lf
*.hpp text eol=lf
# CMake files
*.cmake text eol=lf
*.cmake.in text eol=lf
CMakeLists.txt text eol=lf
# Python
*.py text eol=lf
# MATLAB
*.m text eol=lf
# Makefiles — must be LF
Makefile text eol=lf
*.mk text eol=lf
# Documentation and config
*.md text eol=lf
*.txt text eol=lf
*.in text eol=lf
*.cfg text eol=lf
# Windows-native files — keep CRLF
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Binary files — no line ending conversion
*.pyd binary
*.so binary
*.dll binary
*.lib binary
*.a binary
*.exe binary
*.png binary
*.jpg binary
*.pdf binary