Is it possible to retrieve a git tag from within MATLAB?
이전 댓글 표시
I am developing a set of code to process data, simulate a model, and plot figures. I'm using Git for version control via the Git bash and periodically tagging the code to keep a record of key development points.
At these key development points I am also using the code to construct preliminary data files (.mat) and figures and I need to keep track of which code version (git tag) was used to create the files/figures.
Is there a way to extract the current git tag from within MATLAB?
I've been manually updating a variable within my code to indicate the version, but I've recently begun using development branches in Git and keeping up with manually updating a hardcoded variable when switching between git branches is no longer effective.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Git in MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!