C# 클래스 Sep.Git.Tfs.Core.GitHelpers

상속: IGitHelpers
파일 보기 프로젝트 열기: pmiossec/git-tfs 1 사용 예제들

공개 메소드들

메소드 설명
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