-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitattributes
More file actions
43 lines (38 loc) · 1.42 KB
/
.gitattributes
File metadata and controls
43 lines (38 loc) · 1.42 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
# Delphi .gitattributes template
# Version: 2.0 (keep in sync with Style Guide headers)
#
# Purpose:
# - Normalize line endings for Delphi source files to CRLF to avoid false diffs across OSes
# - Protect binary artifacts from Git filters/diff/merge drivers
# - Provide clear guidance for .dfm/.fmx which can be stored as text (default) or binary
#
# Notes:
# - After adding/updating this file in an existing repository, run:
# git add --renormalize .
# and commit the changes to apply EOL normalization.
# - Choose ONE mode for .dfm/.fmx (TEXT vs BINARY). Do not enable both.
############################################################
# 1) Line endings (text files): enforce CRLF
############################################################
*.pas text eol=crlf
*.dpr text eol=crlf
*.dpk text eol=crlf
*.inc text eol=crlf
*.rc text eol=crlf
*.dproj text eol=crlf
# Forms/Frames: pick exactly one mode for each, see section 2)
# Default Delphi setting is TEXT for .dfm/.fmx; if your project uses BINARY, switch below.
*.dfm text eol=crlf
*.fmx text eol=crlf
############################################################
# 2) Binary files (Git must not attempt text filters/diff)
############################################################
# If your project stores .dfm/.fmx as BINARY, uncomment these and comment out the TEXT lines above.
# *.dfm binary
# *.fmx binary
*.res binary
*.ico binary
*.dcu binary
*.bpl binary
*.dll binary
*.exe binary