Warum wird eine CRLF-Warnung für eine Datei ausgegeben, die als binär markiert ist?

Ich habe eine Datei, die als binär markiert wurde:

$ 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

Undgit diff behandelt die Datei korrekt als binär:

$ 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

Aber wenn ich rennegit status, Ich bekomme eine Warnung überCRLF Conversions:

$ 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

Was ist los? Warum warnt mich git über CRLFs in dieser Datei?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage