-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy path.gitattributes
More file actions
44 lines (43 loc) · 2.77 KB
/
Copy path.gitattributes
File metadata and controls
44 lines (43 loc) · 2.77 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
# Collapse auto-generated files in GitHub PR diffs. These are regenerated by
# `test_docs_are_in_sync` in tests/integration_tests/readme_sync.rs — edits
# belong in the primary source (src/cli/mod.rs for command pages,
# docs/src/content/docs/*.md for everything else).
skills/worktrunk/reference/*.md linguist-generated=true
# Skill-only files are primary sources — edited directly, not regenerated from
# docs/src/content/docs/. Exempt them so real edits stay visible in PR diffs.
skills/worktrunk/reference/troubleshooting.md linguist-generated=false
# The plugin skills tree is a real-file mirror of repo-root skills/, rewritten by
# `test_docs_are_in_sync`'s `sync_plugin_skills_mirror` stage. Nothing here is
# primary, including its copies of the skill-only pages exempted above.
plugins/worktrunk/skills/** linguist-generated=true
docs/public/*.md linguist-generated=true
docs/public/llms.txt linguist-generated=true
docs/public/.well-known/agent-skills/index.json linguist-generated=true
docs/src/generated/terminal-styles.json linguist-generated=true
# Rendered from the USER_CONFIG and PROJECT_CONFIG blocks in src/cli/mod.rs by
# `test_config_source_generates_example_toml` and
# `test_project_config_source_generates_example_toml`.
dev/*.example.toml linguist-generated=true
# The command pages under docs/src/content/docs/ are generated from src/cli/mod.rs
# too, but deliberately stay visible: they are the one rendered copy of the help
# text a reviewer reads. The rest of that directory is hand-written.
# Shell templates are embedded into the binary at compile time (askama); a
# CRLF checkout would leak \r into the shell code Windows-built binaries emit.
templates/* text eol=lf
# makepkg reads the PKGBUILD as a shell script, and a CRLF checkout also breaks
# `test_aur_pkgbuild_ships_the_current_fish_completion`, which matches the
# file's heredoc byte-for-byte against `fish_completion_content("wt")`.
.github/aur/PKGBUILD text eol=lf
# cmd.exe resolves a `goto` label by seeking through the batch file, and an
# LF-only batch file can fail that search ("The system cannot find the batch
# label specified"). The hook shim is only ever run by cmd.exe, so pin its
# checkout to CRLF regardless of the platform cloning it.
plugins/worktrunk/hooks/*.cmd text eol=crlf
# A fixture's object store and index are git's own binary formats, but git only
# calls a file binary when it finds a NUL in the first 8000 bytes, and a small
# enough zlib object may have none. Those diff as text, so `git diff` writes raw
# deflate into its output and any tool that decodes that output as a string
# fails on it — which is how `cargo affected` came to abort before running a
# test. The rest of `_git/` (HEAD, config, refs) is text worth reading.
tests/fixtures/*/_git/objects/** binary
tests/fixtures/*/_git/index binary