¿Por qué se advierte git de CRLF en un archivo marcado como binario?
Tengo un archivo que ha sido marcado como binario:
$ cat .gitattributes
dist/* binary
$ git check-attr -a ./dist/app.js
./dist/app.js: binary: set
./dist/app.js: diff: unset
./dist/app.js: merge: unset
./dist/app.js: text: auto
Ygit diff
trata correctamente el archivo como binario:
$ git diff
diff --git a/dist/app.js b/dist/app.js
index 9c05798..fbcedd4 100644
Binary files a/dist/app.js and b/dist/app.js differ
Pero cuando corrogit status
, Recibo una advertencia sobreCRLF
conversiones:
$ git status
warning: CRLF will be replaced by LF in dist/app.js.
The file will have its original line endings in your working directory.
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: dist/app.js
¿Que esta pasando? ¿Por qué git me está advirtiendo sobre los CRLF en este archivo?