gitInfo = GetGITInfo(directory)
Retrieves the git information on a specified directory or file. This is
essentially a wrapper around the shell command “git”.
directory (string) - Directory name of interest.
‘gitInfo’ will be empty if there is no git info for directory or if directory
does not exist.
7/11/13 dhb Wrote it based on GetSVNInfo
7/12/13 dhb More info, based on Ben Heasly’s version of this in RenderToolbox3.
12/2/18 dhb Add –no-pager to the git branch call, based on email from
Henryk Blasniski who says this will work better across platforms.
The change did not break anything obvious on my machine.
12/8/18 dhb Same edit, line 99