-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitattributes
More file actions
38 lines (31 loc) · 1.55 KB
/
.gitattributes
File metadata and controls
38 lines (31 loc) · 1.55 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
# =============================================================================
# .gitattributes – CodeSys PLCopen XML diff driver
# =============================================================================
# Copy this file to your repository root as ".gitattributes" (or merge the
# relevant lines into your existing .gitattributes), then commit it so every
# team member gets the same diff behavior automatically.
#
# The "diff=codesys-xml" attribute tells git to run the normalizer script
# before diffing, producing clean human-readable output.
#
# The driver itself is configured in ~/.gitconfig (or the repo's .git/config)
# by running setup_codesys_git_diff.bat.
# =============================================================================
# --- CodeSys PLCopen XML exports -------------------------------------------
# Adjust the patterns to match exactly how YOUR project names its export files.
# Option A: All XML files in the repo are CodeSys exports
#*.xml diff=codesys-xml
# Option B: Only exports in a specific folder (uncomment & edit as needed)
# exports/*.xml diff=codesys-xml
# plc/src/*.xml diff=codesys-xml
Codesys/*.xml diff=codesys-xml
# CodeSys native export formats (also XML internally)
*.export diff=codesys-xml
*.expx diff=codesys-xml
# --- Keep line endings consistent on Windows --------------------------------
# (Recommended when the repo is shared across Windows and Linux/macOS)
*.xml text eol=lf
*.export text eol=lf
*.expx text eol=lf
# Auto detect text files and perform LF normalization
#* text=auto