Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
52 lines (43 loc) · 2.38 KB
/
Copy path.gitattributes
File metadata and controls
52 lines (43 loc) · 2.38 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
# Git hooks stay LF even where core.autocrlf checks files out CRLF. Git for
# Windows runs a CRLF hook without trouble, but a POSIX Git -- WSL on a
# Windows checkout, say -- hands the hook to the kernel, which reads the
# carriage return after #!/bin/sh as part of the interpreter's name.
.githooks/* text eol=lf
# The types Biome formats are LF in every checkout, whatever core.autocrlf
# says, so its line-ending check gives one verdict on Windows and in CI.
# Biome's own `auto` setting follows the platform, not the checkout, and
# refuses an LF file on Windows.
*.mjs text eol=lf
*.js text eol=lf
*.jsonc text eol=lf
# The Workflow tool refuses a script that contains a carriage return, and the
# Wisdom extract script is passed to it by path, so a CRLF checkout of it
# cannot be run.
wisdom/extract/workflow.mjs text eol=lf
# The package indexer's snapshots are checked out byte for byte: a sync compares the
# api.json it writes (LF) with the committed one, and a store seeded from the snapshots
# has to start from the bytes a sync writes, or its first diff is every line.
indexer/snapshots/** -text
# The help add-in's resources are checked out byte for byte: every build compares its
# copy of the symbol index with the LF file it writes (builder/addin-index.mjs).
add-in/Resources/** -text
# A bug's reproducer is checked out byte for byte: its .twinproj is packed
# from its source tree, and the two must agree in every checkout.
bugs/** -text
*.twinproj binary
# The twinBASIC programs in scripts/imagestrip/, scripts/impexp/ and scripts/broker/ are laid
# out as a reproducer is, and are checked out byte for byte for the same reason: each
# .twinproj is packed from its src/.
scripts/imagestrip/** -text
scripts/impexp/** -text
scripts/broker/** -text
# The VB6 template `bug_repro.mjs new --with-vb6` copies into a reproducer's vb6/
# is CRLF in every checkout, as the bugs/** files it becomes are, and VB6 needs it.
test/repro-templates/vb6/** -text
# The PngDump modules `bug_repro.mjs new --with-images` copies into a reproducer are CRLF
# in every checkout for the same reason: PngDump.bas is VB6's, and the copy is compared
# with the template line by line.
test/repro-templates/png/** -text
# A package test project's resources are read by its cases byte for byte (TBMANLIB_RES
# compares them with what it returns), and most have no extension git would know.
test/package-tests/*/Resources/** -text