Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
53 lines (49 loc) · 3.28 KB
/
Copy path.gitattributes
File metadata and controls
53 lines (49 loc) · 3.28 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
# Approved test snapshots must materialize with CRLF in the working tree on every
# platform and every core.autocrlf setting: the compared-against output comes from
# System.Xml serialization whose default NewLineChars is CRLF everywhere.
*.snapshot.svg text eol=crlf
# Shell scripts must materialize with LF on every platform: the cluster's Windows
# machines run core.autocrlf=true, and bash rejects a CRLF shebang with
# `CR: command not found` - a .sh versioned without this rule is delivered broken
# to the next clone. Applies to the triage organs under scripts/.
*.sh text eol=lf
# The dnn_i18n self-test (IC11) compares the fixture's working-tree bytes to
# the pipeline's regenerated XML (LF). A core.autocrlf=true checkout smudges
# the fixture to CRLF and the control goes red on a correct tree (measured on
# ai-01, master 5a132aa8: 177746 bytes on disk vs 177156 regenerated). The
# blob is already LF - this rule pins the checkout to match, on every box.
tools/dnn_i18n/fixtures/*.xml text eol=lf
# The 5 live dataset CSVs are byte-exact artefacts: CRLF record terminators and
# bare LF inside quoted cells, in the same file. `-text` tells git never to
# convert them, whatever core.autocrlf says. Without it, a `git add` on a
# core.autocrlf=true machine whose index entry is absent (fresh index, plumbing,
# re-added file) rewrites every CRLF to LF: measured on ai-01, master 92076717,
# numstat 1409/1409 on the Fallacies taxonomy instead of the one row edited.
# Globs, not full paths: the file names contain spaces. They match the 5 live
# files only - not `Cards.old.csv`, not anything under an `Archive/` directory.
# Pinned BOTH WAYS by tools/test_dataset-byte-contract.py: each of the 5 files is
# `-text`, and no other tracked CSV under Cards/ is. The test reads the attribute
# case-exact, because git matches these globs case-insensitively on Windows and
# case-sensitively on the Linux runner: keep the case of the file names.
# `-text` PREVENTS a conversion, it does not REPAIR one: a blob already
# committed with LF stays LF. That defect is seen by the contract (rule 3), not
# by this file.
Cards/Fallacies/*Taxonomy.csv -text
Cards/Rules/*Cards.csv -text
Cards/Rules/*Play.csv -text
Cards/Scenarii/*Cards.csv -text
# The 2shine skin twins and the auth-provider Login twins are resx files the
# repo carries with LF-only blobs. The visible-residual langpack guard
# (DnnVisibleResidualLangpackGuardTests, #457 P24-01) asserts byte-level
# envelopes on the WORKING TREE (2shine: no BOM, LF; Login: exactly one BOM,
# LF). A core.autocrlf=true checkout - the Git-for-Windows default, so the
# windows-latest CI runners and the cluster's Windows boxes - smudges every
# text file to CRLF and the guard goes red on a correct tree (measured on CI
# run 43562114232, PR #2268 first push: both build legs red on
# Enveloppes_2shine_sans_BOM_Login_exactement_un while the blobs were LF).
# `text eol=lf` pins the checkout to match the blob on every box, same remedy
# as the dnn_i18n fixtures above. All 43 blobs under these globs are LF-only
# (measured via git cat-file before adding the rule) - the rule changes no
# blob, it only stops the smudge.
DNNPlatform/Portals/_default/Skins/2shineBS5/App_LocalResources/*.resx text eol=lf
DNNPlatform/DesktopModules/AuthenticationServices/*/App_LocalResources/Login.ascx.*.resx text eol=lf