[fpc-pascal] Git line endings leading to patch problems - was [Semi-OT] Git format patches don't seem to work

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Oct 6 17:07:13 CEST 2011


On 06/10/2011, Reinier Olislagers  wrote:
>
> Git:
> https://github.com/graemeg/freepascal/raw/7026b7669fd422f88ffe33174dac1725c0295427/packages/fcl-extra/src/win/ServiceManager.pas
> => Unix line endings!!!!
> via git pull etc
> => Unix line endings
> not surprising...
>
> Seems the SVN client is converting line endings to my native format.

Don't be so quick to blame the tool, rather learn how to use the tool!
If you want Git to convert EOL characters to your native platform,
then tell it to do so during the Git installation (which you clearly
skipped or didn't understand the options), or specify it later as a
global or per repository option (normally before a 'git clone'
process).

Here it show the option you somehow skipped to notice in the Git installation:
  http://opensoft.homeip.net:8080/~graemeg/msysgit-1.png

To find out more about the core.autocrlf option look it the help:
    git help config
....then search for 'core.autocrlf'

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net



More information about the fpc-pascal mailing list