Hi Chris, Alan,
My favourite editor and the one I use less frequently but nevertheless use from time to time both can smoothly handle LF line endings and store files either as LF or CRLF. In fact, Cygwin git behaving the way it does, makes sure that the shell scripts for testing work fine - my Cygwin installation expects such files to follow the UNIX convention. The result of "git config -list" is surprisingly short: git config --list user.name=Arjen Markus user.email=arjen.mar...@deltares.nl So core.eol is not set. My guess is that the default "native" is now the default for the Cygwin installation, which definitely uses the UNIX convention. More on the other experiments later. Regards, Arjen > -----Original Message----- > From: Chris Marshall [mailto:devel.chm...@gmail.com] > Sent: Monday, December 21, 2015 10:07 PM > To: plplot-devel@lists.sourceforge.net > Subject: Re: [Plplot-devel] Problems applying patches > > I use cygwin git and it seems to behave like a standard unix git as far as > line ending. > I also use the cygwin vim which has no problem leaving the LF untouched. Your > mileage with windows editors will definitely vary! > > --Chris > > On 12/21/2015 15:46, Alan W. Irwin wrote: > > On 2015-12-21 11:37-0800 Alan W. Irwin wrote: > > > >> I too am really glad the process is working for you now, but I am > >> also just as startled as you were by your discovery of an LF working > >> directory. Therefore, I would appreciate you systematically > >> investigating this question further so we can draw some definite > >> conclusions with regard to other attempts at Window/Unix > >> communications via "git format-patch"/"git am" results. > > In addition to the other experiments I asked you to perform, you > > should also let us know the complete results of > > > > git config --list > > > > In particular I am wondering if > > > > core.eol > > > > is set. > > > > That variable gives you complete control over the line endings used in > > your working directory. However, if using git config to set that > > variable be sure you use the --global setting so that you do not > > change the repository version of the config file for the rest of us > > (see also > > <https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration>). > > > > Note, if core.eol is not set the default is "native" which I think > > might be what you want. > > > > However, here is the Key question: are you currently getting a LF > > working directory because Cygwin sets core.eol to lf by default or > > does Cygwin git assume that "native" really means a LF working > > directory on Cygwin platforms? > > > > Since your editing tools are likely happier with a CRLF working > > directory, I think that is what you ultimately want. Of course, that > > likely means you will have to run any patch from me through a LF to > > CRLF converter and use the "--keep-cr" option for "git am" (which > > further reading tells me simply avoids doing the default change from > > CRLF to LF, but also does not enforce CRLF if the patch file is LF). > > > > Anyhow, I would take the time now to set up git line endings exactly > > the way you want them based on your experiments editing files and > > using git am. That would be much better than enforcing LF now (say > > with core.eol) just to keep git-am happy and regretting that > > working-directory setting later once you start actually making further > > changes with your favorite editor. > > > > Alan > > __________________________ > > Alan W. Irwin > > > > Astronomical research affiliation with Department of Physics and > > Astronomy, University of Victoria (astrowww.phys.uvic.ca). > > > > Programming affiliations with the FreeEOS equation-of-state > > implementation for stellar interiors (freeeos.sf.net); the Time > > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > > software package (plplot.sf.net); the libLASi project > > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); > > and the Linux Brochure Project (lbproject.sf.net). > > __________________________ > > > > Linux-powered Science > > __________________________ > > > > ---------------------------------------------------------------------- > > -------- _______________________________________________ > > Plplot-devel mailing list > > Plplot-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/plplot-devel > > > ------------------------------------------------------------------------------ > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.
------------------------------------------------------------------------------
_______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel