Export ONLY differances

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
tb582
Posts: 3
Joined: Mon Dec 13, 2010 4:20 pm

Export ONLY differances

Post by tb582 » Mon Dec 13, 2010 4:23 pm

I have two files - when I open them with diffMerge it says that there's 421 differences, I can't for the life of me figure out how to either export out only the differences OR export out the results with the color coding??

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Export ONLY differances

Post by Beth » Mon Dec 13, 2010 4:42 pm

There isn't a way to accomplish what you want with the GUI client as far as I know. You might try using Diff from the command line. In our user manual, http://download-us.sourcegear.com/DiffM ... Manual.pdf, there is a section called Diffing to a File that you might find helpful. That section is in the last piece of chapter 9.
Beth Kieler
SourceGear Technical Support

tb582
Posts: 3
Joined: Mon Dec 13, 2010 4:20 pm

Re: Export ONLY differances

Post by tb582 » Tue Dec 14, 2010 8:16 am

I keep getting the following:
diffmerge -help
-bash: diffmerge: command not found

tb582
Posts: 3
Joined: Mon Dec 13, 2010 4:20 pm

Re: Export ONLY differances

Post by tb582 » Tue Dec 14, 2010 10:07 am

ok got it semi working but its still NOT exporting out only the 421 differences

diffmerge.sh -diff /Users/user1/Documents/My\ Documents/diffcmdout.txt /Users/user1/Documents/My\ Documents/first.txt /Users/user1/Documents/second.txt

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Re: Export ONLY differances

Post by jeffhostetler » Tue Dec 14, 2010 3:34 pm

I'm not sure what exactly you're asking.

A "diffmerge --diff" should give you a file with just the changes. Just like gnu diff outputs.

Another idea would be to select the "Reference View" and click one
of the differences-only or differences-with-context buttons on the top
left of the tool bar and then select Print. That may generate more paper
than you want, though.

jeff

Post Reply