How can I save git audit info embedded into simulation output

4 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 25 de Jun. de 2025
Editada: Fangjun Jiang el 25 de Jun. de 2025
Run system(), or use MATLAB's git command, e.g.
OutStr=system('git status')
help git
Contents of git: gitclone - is a function. gitinit - is a function. gitrepo - is a function. matlab - is a namespace.

Más respuestas (0)

Categorías

Más información sobre Source Control en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by