Using merged report |
![]() ![]() |
Merged report is a special report type, which can be used to combine parts of compared files in resulting text file. Sample usages include extraction of same part, automatic merging according to single rule, etc.
Merged report is a plain text file, which includes specified portions of original files. When generating such report, Compare It! splits original files to following parts and sections according to comparison result:
Left File: | [same] | [diff] | [same] | -- | [same] | [left] | ... |
Right File: | [same] | [diff] | [same] | [right] | [same] | -- | ... |
[ sect. | 1 ] | [ sect. | 2 ] | [ sect. | 3 ] | ... |
Combination of same and following changes blocks is refered as section. Note that first section of a file can consist of single changes block (in case file is beginning with changes); similarly, if file ends with same line, last section will include only one same block.
To configure Merged report, you specify which blocks and in which order to include in report for each section. Here is description of all blocks you can combine:
Same text [S] | Same section - block of text between two changes |
Source diff [L] | Changes block from source(left) file |
Target diff [R] | Changes block from target(right) file |
Source only [A] | Block which only exist in source file |
Target only [B] | Block which only exist in target file |
The report generation is simple: Compare It! scans compared files, and for each section copies selected lines to report file.
As all other report types, Merged report can be generated with command line, without user interaction. To make a report with already configured options, simply call
wincmp3.exe file1 file2 /G:M report_file .
But you can also specify configuration in command line by using shortcuts described in table: wincmp3.exe file1 file2 /G:M+SLAB report_file .
Let's see what will make this call:
As result, report file is just source file, with "target-only" lines added.
See also:© 1996-2010, Grig Software, All Rights Reserved |
![]() ![]() |