Will App Designer file be compatible with software version control (e.g. git or svn) ?
조회 수: 7 (최근 30일)
이전 댓글 표시
It seems the actual App Designer file is in a binary format. This makes it pointless for software version control. We can see the text in the protected editor so we can tell it's still a text file inside. Will it be possible to detach the text file from the gui development and then continue as an m file? If not then I think App Designer will be of limited use in complex GUI development.
댓글 수: 2
Luke M
2017년 1월 12일
I agree with this and would like to bring this back to the top. I know that appdesigner is in early stages of development, but I work on a project that has several branches, and using appdesigner would make it impossible to merge changes between those branches. It seems like a good idea and definitely has improvements over GUIDE, but as Sean mentioned, it is not something I'll be able to use for this project for this reason. Even GUIDE has a similar issue in the .fig files, but at least the bulk of the code resides in a .m file in that case.
Walter Roberson
2017년 1월 12일
Appdesigner is following the same framework as the .xlsx format: text files that are zip'd together in an archive. You can probably unzip and put the results under version control.
채택된 답변
Tish Sheridan
2018년 11월 12일
편집: Tish Sheridan
2020년 9월 24일
UPDATE: Starting in R2020b, you can use the Comparison Tool to diff and merge App Designer files. You can learn more about this new feature on this page: Compare and Merge Apps.
Previous answer for prior to 20b:
> Yes, as Steve said, you can use MATLAB Comparison Tool to diff but not merge App Designer files (mlapp).
- You can manually select 2 mlapp files to compare - MATLAB will choose App Code Comparison for the comparison type.
- If you use source control in MATLAB (Git, SVN or other) you can compare revisions of your mlapp files: Review changes in source control
- Or you can use MATLAB comparison as an external diff tool: Customize External Source Control to Use MATLAB for Diff and Merge
댓글 수: 11
Robert
2025년 2월 4일
Would it then not be a good option to have this directory structure in the file system as actual folders & subfolders, making it git-able, instead of hiding everything behind a zip wall? I don't see why an app project should only consist of one file.
추가 답변 (2개)
Steven Lord
2017년 1월 12일
Are you concerned about being able to diff and/or merge the App Designer files? I haven't tested that following the steps to which I linked previously will allow your source control system to use the MATLAB Comparison Tool for App Designer files, but I suspect it will.
댓글 수: 1
Walter Roberson
2016년 5월 6일
It uses a zip format of some kind. The first unarchiver I tried expanded it without difficulty.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Source Control에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!