Hi all,

I'm using Git version 1.8.0.msysgit.0 on Windows 7 with the following 

d:\Dev\Cafu> git config core.eol

d:\Dev\Cafu> git config core.autocrlf

This used to work very well, until I created a .gitattributes file with this 

d:\Dev\Cafu> type .gitattributes
*.h     text
*.hpp   text
*.c     text
*.cpp   text

*.txt   text

After that, I did a big renormalization commit as suggested in the .gitattributes man page (rm .git/index; git reset; ...; git commit).

Everything worked as expected, tested on several Windows and Linux systems and several working copies.

But now (on Windows), whenever I edit e.g. a .cpp file, subsequent commands like "git diff", "git add", "git commit" all show a warning like this:

d:\Dev\Cafu> git add Libs\GuiSys\CompBasics.cpp
warning: CRLF will be replaced by LF in Libs/GuiSys/CompBasics.cpp.
The file will have its original line endings in your working directory.

Well... this seems to be entirely correct, but why do I see it?
How can I get rid of this message?

(As a side note, whatever causes this message seems to freak out TortoiseGit as well, as its side-by-side diff shows all lines in the file as "moved", even all the lines that have not been modified at all.)

I'd be very grateful for any hint!  :-)

Best regards,

Dipl.-Inf. Carsten Fuchs

Carsten Fuchs Software
Industriegebiet 3, c/o Rofu, 55768 Hoppstädten-Weiersbach, Germany
Internet: http://www.cafu.de | E-Mail: i...@cafu.de

Cafu - the open-source game and graphics engine for multiplayer 3D action

You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to