Even if you work on windows, I suggest using core.autocrlf = input,
assuming you're not using notepad to edit text files but a nice ide that
handles unix eol. Even notepad++ does it perfectly.
And after this, just redo that big renormalization commit.
On Friday, April 5, 2013 11:33:37 AM UTC+3, Carsten wrote:
> 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
> > false
> This used to work very well, until I created a .gitattributes file with
> this contents:
> > 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
> 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
For more options, visit https://groups.google.com/groups/opt_out.