VCS Namespace


Classes


Git

constructor

With the help of this method you can create a new instance of Git.

Signature

constructor(void) : Object|Git

Returns

  • Object, Git
    • A new instance of Git

isRepository

Check if the given directory is a git repository.

Signature

isRepository(String path) : Boolean

Parameters

  • path
    • Path to check
    • Type: String

Returns

  • Boolean
    • The return value is not further described

getLastCommit

Try to get information about the last commit of a path.

Signature

getLastCommit(String path, Function callback) : void

Parameters

  • path
    • Path to check
    • Type: String
  • callback
    • Function to call on finish
    • Type: Function

getGlobalUser

Get the global author information.

Signature

getGlobalUser(String path, Function callback) : void

Parameters

  • path
    • Path to check
    • Type: String
  • callback
    • Function to call on finish
    • Type: Function