From: Xiaofan C. <xia...@gm...> - 2010-12-06 03:26:27
|
On Mon, Dec 6, 2010 at 10:59 AM, Michael Plante <mic...@gm...> wrote: > Graeme Gill wrote: >>> As I've noted before, there is no reason that everything can't be LF only >>> line ending. The only "nice" reason to use CRLF is to allow Notepad to >>> work on .txt, .inf etc. files. > > > Hrm? The question was about the repository, not the working copy. Notepad > sees the working copy. (But yes, as mentioned elsewhere, notepad and > windiff are my primary reasons.) Do we really care about Notepad? As for Windiff, I am not sure. But there are tools which works with LF line endings. Actually I do not understand why we have such a long thread, as Orin and others have pointed out the LF works for the VStudio. And then binmode is recommended by Cygwin as pointed by Segher. So why not make everything LF and do not allow MSysGit to act smart and convert anything. In that case, everything would be fine. I think this is the easiest and pragmatic solution. I use Cygwin git and never have any issues with various git repositories, some of them cross-platform. I usually use Notepad++ to view text file under Windows. -- Xiaofan |