On 07.10.2011 20:44, Florian Klämpfl wrote:
Am 07.10.2011 11:28, schrieb Marco van de Voort:
In our previous episode, Graeme Geldenhuys said:
So while it could be used, I'd have to remember to run unix2dos over it
- that is, if people expect a Windows patch (

I don't think that is needed. I believe the 'patch' program will sort
that out by itself. I have sent numerous patches to FPC and Lazarus
(both those repositories are git ones on my Linux system). Nobody has
ever complained that the EOL style was wrong. I also don't specify the
--no-prefix when creating patches. Again, the 'patch' program can handle
those a/... b/... prefixes for the committer without problems.

I usually apply patches on FreeBSD, and in rarer cases Linux.

Even up to date patch doesn't always process lineendings properly btw. I
have to dos2unix often on *nix too.

Recently a lot of patches with incorrect filenames, or no filenames if the
patch is for a single file, or even not in universal format have been
submitted, and it takes some work (doable, but annoying) to apply them.

Since the patches aren't tagged with what generated them, I assumed it was
GIT based.

git patches can be applied using
http://svn.freepascal.org/svn/fpcbuild/scripts/florian/unix/svn-apply
on unix.

And if no files are added/removed/moved a simple "patch -Np 0 < the-diff.patch" is sufficient as well. :D (just tested)

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to