Documentation

refreshSourceControl

Update source control status of Simulink project files

Syntax

refreshSourceControl(proj)

Description

example

refreshSourceControl(proj) updates the source control status for all files in the Simulink® project proj. Use this to get the latest source control information before querying the SourceControlStatus property on individual files.

If you use listModifiedFiles to find all modified files in the project, you do not need to call refreshSourceControl first.

Examples

collapse all

Open the airframe project and create a project object.

sldemo_slproject_airframe;
proj = simulinkproject;

Refresh source control status before querying individual files.

refreshSourceControl(proj)

Input Arguments

collapse all

Project, specified as a project object. Use simulinkproject to create a project object to manipulate a Simulink Project at the command line.

Introduced in R2016a

Was this topic helpful?