Hi David,

> Hello,
> 
> I am working on an open source project and I had a user give me a diff of
> the changes he made to a file.
> 
> I know it is possible to use the diff file to apply the changes to the
> version in the repository but I have no idea how.  Can anyone help me?
> 
> Thank in advance!
> 
> David
> 

The easiest way to do this is if the user will supply the diff output
in unified diff format (diff -u old.file new.file > patch).  Then all
you have to do is go to where you have the source file, and apply:

patch -p0 < patch

This will (if everything goes correctly) update your version of the file
with all of the changes that were submitted.  You may then cvs update/
cvs commit at your leisure.

Steven

-- 
==================================================================
== Steven M. Cherry                       [EMAIL PROTECTED]  ==
==                       http://216.59.115.58/steven/home.html  ==
==================================================================

Reply via email to