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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user