C# 클래스 GitScc.Blinkbox.SccHelperService

Wrapper for Source control functionality.
파일 보기 프로젝트 열기: blinkbox/Git-Source-Control-Provider 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
BranchAheadOrBehind ( string from, string to ) : AheadBehind

Determines how many commits the from branch is ahead and/or behind the toBranch.

CheckOutBranch ( string branch, bool createNew = false ) : void

Checks out a branch.

DiffBranches ( string from, string to ) : IEnumerable

Diffs the two branches.

DiffFileInTortoise ( string fileName, string endRevision = null, string startRevision = null ) : void

Diffs the file.

DiffFileWithGit ( string fileName, string revision ) : string

Diffs a file against the specified revision using git.

GetAbsolutePath ( string path ) : string

Converts a relative path to an absolute path relative to the solution.

GetCurrentBranch ( ) : string

Gets the current branch clean of any operation status.

GetHeadRevisionHash ( string branchName = null ) : string

Gets the latest revision for the specified branch (defaults to current branch).

GetLastCommitMessage ( ) : string

Gets the last commit message.

GetWorkingDirectory ( ) : string

Gets the current working directory.

IsMerging ( ) : bool

Determines whether this branch is merging.

ParseGitStatus ( string status ) : IList

Parses git status into a list of files.

RunGitCommand ( string command, bool wait = false, bool silent = false ) : GitCommand

Runs a tortoiseGit command.

RunGitTfs ( string command, bool wait = false, bool silent = false ) : string

Runs a command in the git tfs commandline environment.

RunTortoise ( string command ) : void

Runs a tortoiseGit command.

SccHelperService ( SccProviderService sccProvider ) : System

Initializes a new instance of the SccHelperService class.

WorkingDirectoryClean ( ) : bool

Gets the current working directory.

메소드 상세

BranchAheadOrBehind() 공개 정적인 메소드

Determines how many commits the from branch is ahead and/or behind the toBranch.
public static BranchAheadOrBehind ( string from, string to ) : AheadBehind
from string From branch.
to string To branch.
리턴 GitScc.Blinkbox.Data.AheadBehind

CheckOutBranch() 공개 메소드

Checks out a branch.
public CheckOutBranch ( string branch, bool createNew = false ) : void
branch string The branch.
createNew bool if set to true creates a new branch.
리턴 void

DiffBranches() 공개 정적인 메소드

Diffs the two branches.
public static DiffBranches ( string from, string to ) : IEnumerable
from string From branch.
to string To branch.
리턴 IEnumerable

DiffFileInTortoise() 공개 메소드

Diffs the file.
public DiffFileInTortoise ( string fileName, string endRevision = null, string startRevision = null ) : void
fileName string Name of the file.
endRevision string To revision.
startRevision string From revision.
리턴 void

DiffFileWithGit() 공개 메소드

Diffs a file against the specified revision using git.
public DiffFileWithGit ( string fileName, string revision ) : string
fileName string Name of the file.
revision string The revision.
리턴 string

GetAbsolutePath() 공개 정적인 메소드

Converts a relative path to an absolute path relative to the solution.
public static GetAbsolutePath ( string path ) : string
path string The path.
리턴 string

GetCurrentBranch() 공개 메소드

Gets the current branch clean of any operation status.
public GetCurrentBranch ( ) : string
리턴 string

GetHeadRevisionHash() 공개 메소드

Gets the latest revision for the specified branch (defaults to current branch).
public GetHeadRevisionHash ( string branchName = null ) : string
branchName string Name of the branch.
리턴 string

GetLastCommitMessage() 공개 메소드

Gets the last commit message.
public GetLastCommitMessage ( ) : string
리턴 string

GetWorkingDirectory() 공개 메소드

Gets the current working directory.
public GetWorkingDirectory ( ) : string
리턴 string

IsMerging() 공개 메소드

Determines whether this branch is merging.
public IsMerging ( ) : bool
리턴 bool

ParseGitStatus() 공개 메소드

Parses git status into a list of files.
public ParseGitStatus ( string status ) : IList
status string The status.
리턴 IList

RunGitCommand() 공개 정적인 메소드

Runs a tortoiseGit command.
public static RunGitCommand ( string command, bool wait = false, bool silent = false ) : GitCommand
command string The command.
wait bool if set to true [wait].
silent bool if set to true output is not sent to the notification window.
리턴 GitCommand

RunGitTfs() 공개 정적인 메소드

Runs a command in the git tfs commandline environment.
public static RunGitTfs ( string command, bool wait = false, bool silent = false ) : string
command string The command.
wait bool waits for the process to exit before continuing execution.
silent bool if set to true [silent].
리턴 string

RunTortoise() 공개 메소드

Runs a tortoiseGit command.
public RunTortoise ( string command ) : void
command string The command.
리턴 void

SccHelperService() 공개 메소드

Initializes a new instance of the SccHelperService class.
public SccHelperService ( SccProviderService sccProvider ) : System
sccProvider SccProviderService The SCC provider.
리턴 System

WorkingDirectoryClean() 공개 메소드

Gets the current working directory.
public WorkingDirectoryClean ( ) : bool
리턴 bool