Re: [Flightgear-devel] line endings in GIT

2010-10-13 Thread Torsten Dreyer
> 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?

Here is a very helpful page (at least for a git-newbie like me):

http://help.github.com/dealing-with-lineendings/

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


Re: [Flightgear-devel] line endings in GIT

2010-10-11 Thread Arnt Karlsen
On Mon, 11 Oct 2010 20:35:33 +0200, Jari wrote in message 
<4cb358f5.3080...@flygarna.se>:

> 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

..yup, man|info gitattributes(5)   is|was suggested in:
http://kerneltrap.org/mailarchive/git/2009/11/22/16786/thread


-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;o)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
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


Re: [Flightgear-devel] line endings in GIT

2010-10-11 Thread Jari Häkkinen
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


[Flightgear-devel] line endings in GIT

2010-10-11 Thread Torsten Dreyer
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