Is it possible to retrieve a git tag from within MATLAB?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Source Control in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!