In subversion this is solved with svn property svn:eol-style set to 'native' for text files. When clients checks out files they will automatically get the eol-style appropriate for their OS. Subversion won't accept files with mixed line endings. Surely git has something similar?
Jari On 2010-10-11 20.28, Torsten Dreyer wrote: > Hi, > > we currently have a variety of combinations of line endings in text files. > Most use *nix style LF, some (increasing number) DOS style CRLF and I even saw > a few that used both styles within a single file. > > Can some of our GIT gurus explain a "best practice" how locally configure git > so we get a consistent handling of line endings? > Or is there a way to configure our gitorious repository to enforce one single > style? > > Thanks, Torsten > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel