Method | Description | |
---|---|---|
Command ( ) : string |
Runs the given git command, and returns the contents of its STDOUT.
|
|
CommandInputOutputPipe ( TextReader>.Action |
||
CommandInputPipe ( Action |
||
CommandNoisy ( ) : void |
Runs the given git command, and passes STDOUT through to the current process's STDOUT.
|
|
CommandOneline ( ) : string |
Runs the given git command, and returns the first line of its STDOUT.
|
|
CommandOutputPipe ( ) : TextReader |
Runs the given git command, and returns a reader for STDOUT. NOTE: The returned value MUST be disposed!
|
|
CommandOutputPipe ( Action |
Runs the given git command, and redirects STDOUT to the provided action.
|
|
GitHelpers ( IContainer container ) : System | ||
MakeRepository ( string dir ) : IGitRepository | ||
WrapGitCommandErrors ( string exceptionMessage, System.Action action ) : void |
WrapGitCommandErrors the actions, and if there are any git exceptions, rethrow a new exception with the given message.
|
Method | Description | |
---|---|---|
Start ( string command, Action |
Method | Description | |
---|---|---|
AssertValidCommand ( string command ) : void | ||
Close ( GitProcess process ) : void | ||
RedirectStderr ( |
||
RedirectStdin ( |
||
RedirectStdout ( |
||
Start ( string command ) : GitProcess | ||
Time ( string command, System.Action action ) : void |
public CommandInputOutputPipe ( TextReader>.Action |
||
interact | TextReader>.Action | |
return | void |
public CommandInputPipe ( Action |
||
action | Action |
|
return | void |
public CommandOutputPipe ( Action |
||
handleOutput | Action |
|
return | void |
public GitHelpers ( IContainer container ) : System | ||
container | IContainer | |
return | System |
public MakeRepository ( string dir ) : IGitRepository | ||
dir | string | |
return | IGitRepository |
protected Start ( string command, Action |
||
command | string | |
initialize | Action |
|
return | GitProcess |
public WrapGitCommandErrors ( string exceptionMessage, System.Action action ) : void | ||
exceptionMessage | string | A friendlier message to wrap the GitCommandException with. {0} is replaced with the command line and {1} is replaced with the exit code. |
action | System.Action | |
return | void |