Recent

Author Topic: Making a patch  (Read 3948 times)

Drewski

  • Jr. Member
  • **
  • Posts: 55
Making a patch
« on: March 18, 2004, 02:02:37 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Making a patch
« Reply #1 on: March 18, 2004, 08:47:19 am »
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

  • Jr. Member
  • **
  • Posts: 55
Making a patch
« Reply #2 on: March 18, 2004, 03:17:45 pm »
Okay thanks exactly what I was looking for!