Page 1 of 1

compare "file" + "diff"?

Posted: Tue Mar 28, 2006 11:50 am
by mackal
Is there a way to compare a file's current revision against a revision specified by a diff/patch file? What happens is that I usually end up having a patch for a particular file in a project and I'd like to use the examdiff interface to inspect the changes suggested in the patch. I'd like to skip the step of making a copy of the file in question, applying patch, and only then doing the comparison...

Posted: Wed Mar 29, 2006 5:22 am
by psguru
So you basically want to use ExamDiff Pro to visualize the patch...

Yes, it is possible via plug-ins. Let's say that your patch files have extension "patch". Now create a plug-in with the following parameters (use your own location of the GNU Patch tool):

Code: Select all

Name:           Patch
Extensions:     patch
Application:    C:\Tools\Patch.exe
Arguments:      --quiet --output=$OUTPUTFILEPATH $OPPOSITEFILEPATH $INPUTFILEPATH
Now when you compare a file with its patch, EDP will show the patched file as the second file.