ans =
ProjectFile with properties:
Path: "C:\MATLAB\Projects\examples\TimesTableApp1\refs\TimesTableGame\resources\project\Project.xml"
Revision: ""
SourceControlStatus: Added
Refresh the source control status before querying individual files. You do not need to do
this before calling listModifiedFiles.
refreshSourceControl(mainProject)
Get all the project files that are Unmodified. Use the ismember function to get an array
of logicals stating which files in the Times Table App project are unmodified. Use the
array to get the list of unmodified files.
unmodifiedStatus = ismember([mainProject.Files.SourceControlStatus],matlab.sourcecontrol.Status.Unmodified);
mainProject.Files(unmodifiedStatus)
ans =
1×9 ProjectFile array with properties:
Path
Labels
Revision
SourceControlStatus
Get File Dependencies
Run a dependency analysis to update the known dependencies between project files.
updateDependencies(mainProject)
Get the list of dependencies in the Times Table App project. The Dependencies property
contains the graph of dependencies between project files, stored as a MATLAB digraph
object.
g = mainProject.Dependencies
g =
digraph with properties:
Edges: [6×1 table]
Create and Edit Projects Programmatically