C# 클래스 Hpdi.Vss2Git.GitWrapper

Wraps execution of Git and implements the common Git commands.
파일 보기 프로젝트 열기: abevoelker/vss2git 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IEnumerable paths ) : bool
Add ( string path ) : bool
AddAll ( ) : bool
Commit ( string authorName, string authorEmail, string comment, DateTime localTime ) : bool
FindExecutable ( ) : bool
GitWrapper ( string repoPath, Logger logger ) : System
Init ( ) : void
Move ( string sourcePath, string destPath ) : void
Remove ( string path, bool recursive ) : void
SetConfig ( string name, string value ) : void
Tag ( string name, string taggerName, string taggerEmail, string comment, DateTime localTime ) : void

비공개 메소드들

메소드 설명
AddComment ( string comment, string &args, TempFile &tempFile ) : void
Execute ( ProcessStartInfo startInfo, string &stdout, string &stderr ) : int
ExecuteUnless ( ProcessStartInfo startInfo, string unless ) : bool
FailExitCode ( string exec, string args, string stdout, string stderr, int exitCode ) : void
FindInPathVar ( string filename, string &foundPath ) : bool
FindInPaths ( string filename, IEnumerable searchPaths, string &foundPath ) : bool
GetStartInfo ( string args ) : ProcessStartInfo
GetUtcTimeString ( DateTime localTime ) : string
GitExec ( string args ) : void
GitExecUnless ( string args, string unless ) : bool
NeedsQuoting ( char c ) : bool
Quote ( string arg ) : string

Puts quotes around a command-line argument if it includes whitespace or quotes.

There are two things going on in this method: quoting and escaping. Quoting puts the entire string in quotes, whereas escaping is per- character. Quoting happens only if necessary, when whitespace or a quote is encountered somewhere in the string, and escaping happens only within quoting. Spaces don't need escaping, since that's what the quotes are for. Slashes don't need escaping because apparently a backslash is only interpreted as an escape when it precedes a quote. Otherwise both slash and backslash are just interpreted as directory separators.

memoryStreamToString ( MemoryStream strm ) : string
parseOutput ( StreamReader output, char mark ) : string

메소드 상세

Add() 공개 메소드

public Add ( IEnumerable paths ) : bool
paths IEnumerable
리턴 bool

Add() 공개 메소드

public Add ( string path ) : bool
path string
리턴 bool

AddAll() 공개 메소드

public AddAll ( ) : bool
리턴 bool

Commit() 공개 메소드

public Commit ( string authorName, string authorEmail, string comment, DateTime localTime ) : bool
authorName string
authorEmail string
comment string
localTime DateTime
리턴 bool

FindExecutable() 공개 메소드

public FindExecutable ( ) : bool
리턴 bool

GitWrapper() 공개 메소드

public GitWrapper ( string repoPath, Logger logger ) : System
repoPath string
logger Logger
리턴 System

Init() 공개 메소드

public Init ( ) : void
리턴 void

Move() 공개 메소드

public Move ( string sourcePath, string destPath ) : void
sourcePath string
destPath string
리턴 void

Remove() 공개 메소드

public Remove ( string path, bool recursive ) : void
path string
recursive bool
리턴 void

SetConfig() 공개 메소드

public SetConfig ( string name, string value ) : void
name string
value string
리턴 void

Tag() 공개 메소드

public Tag ( string name, string taggerName, string taggerEmail, string comment, DateTime localTime ) : void
name string
taggerName string
taggerEmail string
comment string
localTime DateTime
리턴 void