Forum > Other

Making a patch

(1/1)

Drewski:
What is the proper way to make a patch
Do you use diff?
Please give an example.

Thanks in advance,

Andrew

Perhaps an example could be put on the Mailinglist page of how to make a patch

Vincent Snijders:
See this FAQ: http://www.lazarus.freepascal.org/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=2#41

But I prefer reading the diff -u output and like to inspect the patch file before sending. So I do it a bit dfferent.'

cvs -z3 diff -u > diff.txt
Then I open the diff.txt in an editor and remove all non-relevant information, for example line starting with ? or other files I changed but don't want to send (yet). Then I gzip the patch:
cat diff.txt | gzip > mypatch.gz

Looking forward to your patches.

Drewski:
Okay thanks exactly what I was looking for!

Navigation

[0] Message Index

Go to full version