Diffmerge command line options

Support for our DiffMerge utility.

Moderator: SourceGear


Posts: 2
Joined: Sun Dec 05, 2010 11:27 am
PostPosted: Sun Dec 05, 2010 11:39 am
Can I use diffmerge tool from command line to get the final repot . Yes What I'm looking for is Just report not individual changes . I know one command line option like
diffmerge.exe --title1="originalversion" --title2=''modified version" %1 %2

But the above command is opening diffmerge windw and showing the changes. What I want is final summary in command line itself instead of opening in window. So that I can take summary and start using that in my program. Is it possible?

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Mon Dec 06, 2010 10:20 am
Yeah, there is a --diff=file option that takes the 2 input files and creates an output
file with either traditional or unified diffs and then exits with an exit status set to
indicate whether there were differences or errors or whatever.

See the "Diffing to a File" section in Chapter 9 in the manual for all the details.

Hope this helps,
jeff

Posts: 2
Joined: Sun Dec 05, 2010 11:27 am
PostPosted: Mon Dec 06, 2010 11:16 am
jeffhostetler wrote:Yeah, there is a --diff=file option that takes the 2 input files and creates an output
file with either traditional or unified diffs and then exits with an exit status set to
indicate whether there were differences or errors or whatever.

See the "Diffing to a File" section in Chapter 9 in the manual for all the details.

Hope this helps,
jeff



The below option
diffmerge {-diff=pathname} [-unified] {file1} {file2}
Compares two different files and ouputs summary to a file. In the same way can I compare 2 different folders and the files within those folders , and final summary written to a file. The main aim is I want to compare two different versions of a project :)

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Mon Dec 06, 2010 12:13 pm
Sorry, but no. DiffMerge started as a fundamentally a GUI tool.
I added the thing to diff a individual file to the console, but that's
as far as I got.

If you just want a summary of things, it sounds like you might
want to look at gnu-diff. Give it the 2 directories and let it show
which files are same/different/added/deleted/etc.

/usr/bin/diff -q dir1 dir2 > log

If you're on Windows, there is both a regular port and cygwin version.

jeff

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 2 guests