Logo Paket

CommandHelper Module

Contains helpers which allow to interact with [git](http://git-scm.com/) via the command line.

Functions and values

Function or value Description

directRunGitCommand repositoryDir command

Full Usage: directRunGitCommand repositoryDir command

Parameters:
    repositoryDir : string
    command : string

Returns: bool

Runs the given git command, waits for its completion and returns whether it succeeded.

repositoryDir : string
command : string
Returns: bool

fireAndForgetGitCommand repositoryDir command

Full Usage: fireAndForgetGitCommand repositoryDir command

Parameters:
    repositoryDir : string
    command : string

Fires the given git command ind the given repository directory and returns immediatly.

repositoryDir : string
command : string

gitCommand repositoryDir command

Full Usage: gitCommand repositoryDir command

Parameters:
    repositoryDir : string
    command : string

Runs the given git command, waits for its completion.

repositoryDir : string
command : string

gitPath

Full Usage: gitPath

Returns: string

Tries to locate the git.exe via the eviroment variable "GIT".

Returns: string

gitTimeOut

Full Usage: gitTimeOut

Returns: TimeSpan

Specifies a global timeout for git.exe - default is *no timeout*

Returns: TimeSpan

runFullGitCommand repositoryDir command

Full Usage: runFullGitCommand repositoryDir command

Parameters:
    repositoryDir : string
    command : string

Returns: string[]

Runs the git command and returns the results.

repositoryDir : string
command : string
Returns: string[]

runGitCommand repositoryDir command

Full Usage: runGitCommand repositoryDir command

Parameters:
    repositoryDir : string
    command : string

Returns: bool * List<string> * string

Runs git.exe with the given command in the given repository directory.

repositoryDir : string
command : string
Returns: bool * List<string> * string

runSimpleGitCommand repositoryDir command

Full Usage: runSimpleGitCommand repositoryDir command

Parameters:
    repositoryDir : string
    command : string

Returns: string

Runs the git command and returns the first line of the result.

repositoryDir : string
command : string
Returns: string

Type something to start searching.