A source control provider is a piece of third-party software that enables you to share files among multiple users, improve security and quality, and track changes to shared projects. You can use the NI Compare Tool to display the differences between the local copy of a selected file and the version in source control.
Before beginning this task, make sure the computer on which you are running the NI Compare Tool includes a source control provider.
Complete the following steps to configure a source control provider to use the NI Compare Tool as the default application to compare two versions of a file:
|-alias1||Changes the display name of the first file. You may consider changing the display name of the file if the filename is randomly generated. Specifying a meaningful display name helps you to keep track of the version of the file.|
|-alias2||Changes the display name of the second file. You may consider changing the display name of the file if the filename is randomly generated. Specifying a meaningful display name helps you to keep track of the version of the file.|
|-exclude||Specifies the type of difference to ignore. Use commas to separate multiple types of differences.|
|-report||Generates a comparison report in HTML format that summarizes the differences.|
Specifies whether to use the default settings in the NI Compare Tool.
The value for this argument can be only TRUE or FALSE. Specify a value of TRUE if you want to use user-defined settings. You can specify user-defined settings by selectingin the NI Compare Tool. Specify a value of FALSE if you want to use the default settings.
If you do not use this argument, the NI Compare Tool uses the default settings.
For example, you can use the following command to configure the source control provider to use the NI Compare Tool.
"C:\Program Files\National Instruments\LabVIEW NXG\NI Compare.exe" $1 $2 -alias1 TestFile -usePreferences true -exclude Diagram.Comments,Diagram.Visual.Position -report "C:\Users\lvadmin\Desktop\compare report.html"