[Mono-list] How to create a patch/diff of mono?

Paolo Molaro lupus@ximian.com
Fri, 27 Sep 2002 19:06:10 +0200


On 09/27/02 Luis Fernandez wrote:
> I have started doing some coding in the System.Data namespace and I
> would like to know how to create the patches/diffs so I can send them
> over but I've never done this before. 
> 
> I believe I need to use the diff utility from the command line, but I'm
> not sure what options to specify other than the files to be compared so
> that the output is "correct".

If you worked on the local copy of a cvs tree, you may simply run:

	cvs diff -u -N

If you wrote new files, you'll have to cvs add them first, but this
works only if you have also write access to the cvs repository (ie not
with anoncvs). If you can't cvs add, simply attach the new files to the
mail.

If you worked from an unpacked tarball, you need the old copy of the
file to compare with:

	cp file.cs file.cs.old
	... hack on file.cs ...
	diff -u file.cs.old file.cs

Save the output of diff (or cvs diff) in a file and attach it to your
email. Hope this helps.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better