chore: add lock files as binary in .gitattributes (#249)

Lock files (Cargo.lock, bun.lock, etc.) are machine-generated and
should not be manually edited or line-ending normalized. Mark them
as binary to prevent unnecessary diff conflicts.

Added:
- *.lock -text
- Cargo.lock -text
- package-lock.json -text
- bun.lock -text
- bun.lockb -text
- yarn.lock -text
- pnpm-lock.yaml -text
- poetry.lock -text
This commit is contained in:
Sense_wang
2026-03-02 20:25:19 +08:00
committed by GitHub
parent 09a768250b
commit c5c7f21683
+10
View File
@@ -33,6 +33,16 @@
*.class -text
*.jar -text
# Lock files are binary (machine-generated, should not be manually edited)
*.lock -text
Cargo.lock -text
package-lock.json -text
bun.lock -text
bun.lockb -text
yarn.lock -text
pnpm-lock.yaml -text
poetry.lock -text
# Executed by Linux
*.sh text eol=lf
*.py text eol=lf