mmgetcommit
Get commit message from an item.
Syntax
cm = mmgetcommit(branch, item)
[cm,msg] = mmgetcommit(branch, item)
[cm,msg] = mmgetcommit(item)
Description
[cm,msg] = mmgetcommit(branch, item) returns a commit object and the commit message for a certain item that is stored in Model Manager. Often it is the commit message that is of most interest. The msg variable is a struct with the following fields:
comment: a string with the commit message
saved: a numerical (int64) date representing the saved time
savedstr: a string with the date as text of the form YYYY-MM-DD hh:mm:ss
savedby: a string with the name of the committer
Note that the function mmmodelinfo also returns the commit message as one its output.
Example
Find models that include "busbar" in the title or description. Show the commit message of one of the hits.
branch = mmgetbranch('Main', 'Repository 1', 'MyDatabase')
dat = mmsearch(branch, 'busbar')
[cm,msg] = mmgetcommit(branch, dat(6))
See also
mmmodelinfo