GetGITInfo - aleslab/Psychtoolbox-3-aleslab-fork GitHub Wiki

gitInfo = GetGITInfo(directory)

Description:
Retrieves the git information on a specified directory or file. This is
essentially a wrapper around the shell command "git".

Input:
directory (string) - Directory name of interest.

Output:
gitInfo (struct) - Structure containing the following information:
Path
Describe
Revision
LastCommit
RemoteRepository
RemoteBranch
LocalBranch

'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.

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychOneliners/GetGITInfo.m
⚠️ **GitHub.com Fallback** ⚠️