compare "file" + "diff"?

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
mackal
New Member
Posts: 1
Joined: Tue Mar 28, 2006 11:45 am

compare "file" + "diff"?

Post 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...
User avatar
psguru
Site Admin
Posts: 2232
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post 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.
psguru
PrestoSoft
Post Reply