How to close the Three-way merge window programmatically ?

2 views (last 30 days)
Hi,
I've been trying to find a way to Save & Close the Three-Way merge window programmatically (using code in the command window or in a script).
I was able to find documentation on the programmatic use of the tool: https://uk.mathworks.com/help/simulink/slref/simulinkthreewaymergetool.html
However, it only opens and executes the Three-way merge and I'm unable to find a programmatic way to close it. Is there any way to assign a handle or anything else in order to programmatically save and close the window? Just for clarification, I don't need to solve any conflicts manually (at least not any functional changes), hence, I'm looking to save and close it automatically.
Thanks.

Answers (1)

Samay Sagar
Samay Sagar on 10 Oct 2024
While there are no functions to save and close the Simulink Three Way Merge Tool programmatically, you can use the “mlAutoMerge” Git plugin outside of MATLAB to merge models automatically. This plugin merges models across different Git branches containing SLX files with non-overlapping changes.
For more information to enable auto merge for models in a Git repository, you can refer the following documentation:

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!