I'm using Windows 7, I have MATLAB 2015b with git version 2.6.1.windows.1. MATLAB / Git integration is working.
I have a set of MATLAB tools that I use for data analysis that are being developed with source control using Git. These tools save log files when run which give dates, times, files used, commands, and variable values. I would like to add the GIT commit SHA value to these logs so I can track the data back to the version that was ran and therefore determine if some part of the data might be invalid due to a known bug.
I know MATLAB has access to the values, I can right click on a Git controlled file and select "Source Control" and then "Show Revisions" and see the SHA. Is there a MATLAB command or accessible object method that I can use to get this value so that I can put it in my log?