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 で Source Control についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!