C# Класс Sep.Git.Tfs.Core.GitHelpers

Наследование: IGitHelpers
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Command ( ) : string

Runs the given git command, and returns the contents of its STDOUT.

CommandInputOutputPipe ( TextReader>.Action interact ) : void
CommandInputPipe ( Action action ) : void
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 handleOutput ) : void

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.

Защищенные методы

Метод Описание
Start ( string command, Action initialize ) : GitProcess

Приватные методы

Метод Описание
AssertValidCommand ( string command ) : void
Close ( GitProcess process ) : void
RedirectStderr ( ProcessStartInfo startInfo ) : void
RedirectStdin ( ProcessStartInfo startInfo ) : void
RedirectStdout ( ProcessStartInfo startInfo ) : void
Start ( string command ) : GitProcess
Time ( string command, System.Action action ) : void

Описание методов

Command() публичный Метод

Runs the given git command, and returns the contents of its STDOUT.
public Command ( ) : string
Результат string

CommandInputOutputPipe() публичный Метод

public CommandInputOutputPipe ( TextReader>.Action interact ) : void
interact TextReader>.Action
Результат void

CommandInputPipe() публичный Метод

public CommandInputPipe ( Action action ) : void
action Action
Результат void

CommandNoisy() публичный Метод

Runs the given git command, and passes STDOUT through to the current process's STDOUT.
public CommandNoisy ( ) : void
Результат void

CommandOneline() публичный Метод

Runs the given git command, and returns the first line of its STDOUT.
public CommandOneline ( ) : string
Результат string

CommandOutputPipe() публичный Метод

Runs the given git command, and returns a reader for STDOUT. NOTE: The returned value MUST be disposed!
public CommandOutputPipe ( ) : TextReader
Результат TextReader

CommandOutputPipe() публичный Метод

Runs the given git command, and redirects STDOUT to the provided action.
public CommandOutputPipe ( Action handleOutput ) : void
handleOutput Action
Результат void

GitHelpers() публичный Метод

public GitHelpers ( IContainer container ) : System
container IContainer
Результат System

MakeRepository() публичный Метод

public MakeRepository ( string dir ) : IGitRepository
dir string
Результат IGitRepository

Start() защищенный Метод

protected Start ( string command, Action initialize ) : GitProcess
command string
initialize Action
Результат GitProcess

WrapGitCommandErrors() публичный Метод

WrapGitCommandErrors the actions, and if there are any git exceptions, rethrow a new exception with the given message.
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
Результат void