Is it possible to retrieve a git tag from within MATLAB?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Source Control dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!