listModifiedFiles
プロジェクトの変更済みファイルのリスト
説明
は指定したプロジェクトの変更済みプロジェクト ファイルを返します。この関数は、プロジェクトのソース管理ステータスを更新してから、プロジェクトの [変更済みファイル] ビューにリストされるプロジェクト ファイルの配列を返します。modifiedfiles
= listModifiedFiles(proj
)
例
プロジェクトの変更済みファイルのリスト
プロジェクト Times Table App を開きます。currentProject
を使用して、現在読み込まれているプロジェクトからプロジェクト オブジェクトを作成します。
openExample("matlab/TimesTableProjectExample")
proj = currentProject;
プロジェクト名を変更します。
proj.Name = "Better Times Table App";
プロジェクトの変更済みファイルをすべて取得します。
modifiedfiles = listModifiedFiles(proj)
modifiedfiles = 1x2 ProjectFile array with properties: Path Labels Revision SourceControlStatus
変更された 2 つのファイルを確認します。これを、resources
フォルダーに 2 つの変更済みプロジェクト メタデータ ファイルに表示できる、プロジェクトの [変更済みファイル] ビューと比較します。
最初に変更されたファイルの最新のリビジョンを取得します。
revision = modifiedfiles(1).Revision
revision = "ab5a6255ccb2e63c7cd6a8e3bf5c5564926adae8"
入力引数
proj
— プロジェクト
matlab.project.Project
オブジェクト
プロジェクト。matlab.project.Project
オブジェクトとして指定します。currentProject
を使用して、現在読み込まれているプロジェクトからプロジェクト オブジェクトを作成します。
出力引数
modifiedfiles
— 変更済みファイル
ProjectFile
オブジェクトの配列
変更済みファイル。ProjectFile
オブジェクトの配列として返されます。
バージョン履歴
R2019a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)