-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.gitattributes
More file actions
48 lines (43 loc) · 1.62 KB
/
Copy path.gitattributes
File metadata and controls
48 lines (43 loc) · 1.62 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
# =============================================================================
# Line endings — this is a Windows-only Delphi project, so every text file is
# CRLF in the working tree (what you and the Delphi IDE actually edit).
#
# Git normalizes its internal blob to LF; that normalization is exactly what
# keeps `git diff` clean. Without this file a CRLF working tree diffed against
# an LF blob shows EVERY line as changed (the .dproj "whole-file rewrite" noise).
# Ref: https://git-scm.com/docs/gitattributes (see the `text` and `eol` attrs)
#
# Bottom line: your files on disk are CRLF; the noise-free diff is the payoff.
# =============================================================================
# Default: auto-detect text, and check every text file out as CRLF.
* text=auto eol=crlf
# Delphi source & project files are always text — force CRLF explicitly.
*.pas text eol=crlf
*.dpr text eol=crlf
*.dpk text eol=crlf
*.inc text eol=crlf
*.dproj text eol=crlf
*.groupproj text eol=crlf
# Docs / scripts that live in this repo — Windows tooling, keep CRLF.
*.md text eol=crlf
*.txt text eol=crlf
*.cmd text eol=crlf
*.bat text eol=crlf
# .dfm / .fmx can be saved as text OR binary form — let auto-detect decide,
# so a binary-form form file is never line-ending mangled.
# Known-binary types — never apply any end-of-line conversion.
*.res binary
*.dcu binary
*.dcp binary
*.bpl binary
*.exe binary
*.dll binary
*.obj binary
*.lib binary
*.ico binary
*.bmp binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.zip binary