How can I save git audit info embedded into simulation output
조회 수: 5 (최근 30일)
이전 댓글 표시
I'd like to improve the traceability of my simulation outputs. I currently use a diary file to record the git commit and save it alongside my simulation output, but it would be even better if I could embed the commit info inside the output object. Is there a Matlab function to do this? Thanks
댓글 수: 0
채택된 답변
Fangjun Jiang
2025년 6월 25일
편집: Fangjun Jiang
2025년 6월 25일
Run system(), or use MATLAB's git command, e.g.
OutStr=system('git status')
help git
댓글 수: 0
추가 답변 (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!