Three-Way AutoMerge Solution for Requirement Set and Link Set
If multiple users are working on the same set of requirement set and link set files in Git™, you can merge the changes into a single file by using the
Configure Git Environment for AutoMerge
You can follow the process described in Customize External Source Control to Use MATLAB for Diff and Merge with Requirements Toolbox™ to merge changes in different branches in Git.
mlAutoMerge with the Git tool:
At the MATLAB® command prompt, enter:
Create a project and add the project to Git. For more information, see Add Existing Project to Source Control.
Select and Merge Branches in Git
To select a branch and merge the changes:
Change the current folder to your Git repository folder.
Select Branches from the toolstrip.
From Branches drop-down list, select a branch from which you want to merge the changes.
Click Merge to merge from the selected branch.
After merging of a requirement set file is complete, a log file
<requirement_set_name>_merge_<timestamp>.logis generated in the Git repository folder. The log file contains changes in the SID values of the requirements during merging of requirement set (
If there are no conflicts in merging the branches, then merge modifies the target file. If, the changes conflict, you must view and resolve the conflicts manually.
Git is the only supported source control tool.
You must resolve the merge conflicts manually.
When you Move up or Move down a requirement under its parent requirement, the change in order or sequence may not reflect in the merged requirement set.
You cannot merge the requirement set files that contain images.