lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git on Windows (was: Re: git not fetching from origin...)


From: Mark Polesky
Subject: Re: git on Windows (was: Re: git not fetching from origin...)
Date: Tue, 26 May 2009 02:03:58 -0700 (PDT)

When I installed git, I selected Unix style line endings.
Now every time I <git commit -a> or even <git diff HEAD>
I get this warning for *each* modified file:

warning: CRLF will be replaced by LF in <filename>.

- Mark


----- Original Message ----
> From: Trevor Daniels <address@hidden>
> To: Johannes Schindelin <address@hidden>
> Cc: Mark Polesky <address@hidden>; Jonathan Kulp <address@hidden>; Carl D. 
> Sorensen <address@hidden>; lilypond-devel <address@hidden>
> Sent: Tuesday, May 26, 2009 1:57:07 AM
> Subject: Re: git on Windows (was: Re: git not fetching from origin...)
> 
> 
> Johannes Schindelin Tuesday, May 26, 2009 9:37 AM
> 
> >> > > > >  4) Recommend a CR/LF behavior.
> >> > > > >     Use Unix style line endings?
> >> > > > >     Use Windows style line endings?
> >> > > > >     Commit line endings as they are?
> >> > > >
> >> > > > Again, I think the default is sane here (unless somebody > > > fscks 
> >> > > > up 
> and
> >> > > > commits files with CR/LF line endings).
> >> > >
> >> > > Or Mac line endings.
> >> > >
> >> > > It is essential to use the default in my opinion,
> >> > > so I'll make this clear.  Perhaps I should also
> >> > > mention that any files pushed (by others) to
> >> > > remote/origin/master with Mac line endings screw
> >> > > up a Windows respository when pulled.  The only
> >> > > way out, as far as I have been able to discover,
> >> > > is for someone with write access to fix them
> >> > > immediately.
> >> >
> >> > Mac line endings will pretty much screw everybody, including > Mac 
> >> > users, 
> as
> >> > Git's diff engine (which is responsible for merging, too) > relies on LF
> >> > being the last byte in every line.
> >> >
> >> > But then, I am not aware of anyone managing to get LilyPond to > run on
> >> > MacOS < 10.*, and on MacOSX, the native line ending is LF.
> >> 
> >> Even so, Mac line endings have found their way
> >> into Lily's remote/origin/master several times
> >> in the last couple of years.  I thought only
> >> Windows was affected, as no one else seemed to be
> >> concerned about it.  I fixed them as soon as
> >> they appeared.
> > 
> > Oh... Well, you probably did not do much merging on these files as long as
> > they were CR-only, I guess... ;-)
> 
> Exactly so!  The first time it happened was
> quite traumatic.  Now I know what to do it's
> just a nuisance.  Fortunately they show up in
> my repo as soon as I try to merge after fetching
> from remote, so I spot them right away and push a
> fix.
> 
> Trevor



      




reply via email to

[Prev in Thread] Current Thread [Next in Thread]