online source control
back to content
sign up free version control plan

SDiffMergeParameters Class

Description

The class SDiffMergeParameters defines the parameters for diff or merge.

Syntax

 class SDiffMergeParameters
{

     String m_strDiffFileArguments;
     String m_strDiffDirArguments;
     String m_strThreeWayMergeArguments;
     String m_strDiffMergeTool;
}

Fields

m_strDiffFileArguments
Specifies the arguments to supply for files comparison when the diff tool is invoked. The following macros are available (the macros are case-sensitive):

m_strDiffDirArguments
Specifies the arguments to supply for directory comparison when the diff tool is invoked. The following macros are available (the macros are case-sensitive):

m_strThreeWayMergeArguments
Specifies the arguments for the three-way merge. This parameter allows you to specify the arguments to supply for three-way merge when the merge tool is invoked. The following macros are available (the macros are case-sensitive):

For example, to invoke MergeHero.jar to merge three files, the entry for this field is as follows:

java -jar %DIFFMERGE_TOOL% -merge %BASE_FILE% %THEIRS_FILE% %YOURS_FILE% %RESULT_FILE% -LeftLabel %FIRST_LABEL% -Right Label %SECOND_LABEL%

Note: You can adjust the order of "%THEIRS_FILE%"and "%YOURS_FILE%".

m_strDiffMergeTool
Specifies the application for diff/merge.

See Also