-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitattributes
More file actions
15 lines (14 loc) · 953 Bytes
/
Copy path.gitattributes
File metadata and controls
15 lines (14 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Check text files out with LF everywhere, whatever a contributor's
# `core.autocrlf` says. Windows CI defaults it to `true`, which rewrites the
# working tree to CRLF — and `viewer-ui/api.fixture.json` is compared byte for
# byte against a payload serialized with `\n`, so the checkout alone failed the
# wire-fixture test. Every text file in the index is already LF, so this changes
# no content; it only stops the checkout from changing it.
* text=auto eol=lf
# The viewer's built bundle is committed so `cargo install` needs no Node
# toolchain (see src/web/viewer/assets.rs). Vite names every chunk by content
# hash, so any change under viewer-ui/src rewrites these files wholesale and
# buries the real diff. Collapse them: `-diff` prints one line instead of the
# bundle, `linguist-generated` folds them in GitHub reviews. Rebuild with
# `npm --prefix viewer-ui run build` — never hand-edit.
viewer-ui/dist/** -diff linguist-generated=true