-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitattributes
More file actions
42 lines (35 loc) · 1.24 KB
/
Copy path.gitattributes
File metadata and controls
42 lines (35 loc) · 1.24 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
# Git stores internally files as utf8 and with eol lf.
# Set default behavior to automatically normalize line endings.
# Update line endings of already checkked in files
# git add --update --renormalize --verbose .
#==text_files: general text files behavior
#==native_line_ending_files: files to keep native line ending
#==specific_files: explicit line ending and utf8 without bom compatible fmt
#==deviating_rules: more complex rules
#==binary_files: binary files are used verbatim and keep line endings
#==SHENANIGANS: unexpected and/or bad behavior
#==text_files
# explicit line ending and utf8 without bom compatible fmt
* text eol=lf
# Typical other option to use auto-detection: text eol=auto
#==native_line_ending_files
# *.c text eol=crlf
# *.cpp text eol=crlf
# *.h text eol=crlf
#==specific_files
*.c text eol=lf
*.cpp text eol=lf
*.h text eol=lf
*.lua text eol=lf
*.txt text eol=lf
*.zig text eol=lf
#==deviating_rules
# Consider checking manually the bom and prefer UTF-16LE-BOM or UTF-16LE
# /some/explicit/path text working-tree-encoding=UTF-16 eol=CRLF
#==binary_files
# data/binary_data/** binary
# lib/include/** linguist-vendored
#==SHENANIGANS
# SHENNANIGAN
# Legacy encodings like utf-16le-bom may get wrongly renormalized and/or
# detected.