10 pathStr=fileparts(mfilename(
'fullpath'));
12 [hashStr,StMsg]=
mxberry.
dev.
scm.
git.gitcall(
'rev-parse --abbrev-ref HEAD',...
15 hashStr=strtrim([hashStr{:}]);
17 if iscell(hashStr)&&isempty(hashStr)
19 elseif strcmp(StMsg.identifier,
'GIT:versioningProblem')&&...
20 strncmp(hashStr,
'fatal: Not a git repository',...
21 numel(
'fatal: Not a git repository'))
22 hashStr='unversioned';
function gitgetbranch(in pathStr)