C# 클래스 GitScc.GitRepository

상속: IDisposable
파일 보기 프로젝트 열기: jzoss/Git-Source-Control-Provider 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BuildChange GitScc.DataServices.Change
CreateBranchInfoFromBranch GitScc.GitBranchInfo
CreateCommit GitScc.DataServices.Commit
CreateGitFileEvent Task
DecodeGitEvents Task
DeleteBranch string
FileChangedEvent Task
FileExistsInGit bool
FileExistsInGit bool
FileExistsInRepo bool
FileIgnored bool
FireBranchChangedEvent void
FireCommitShaChangedEvent void
FireFileStatusUpdateEvent void
FireFilesChangedEvent void
GetBranchId string
GetCommitById GitScc.DataServices.Commit
GetCurrentChangedFiles GitFile>.Dictionary
GetCurrentFilesStatus List
GetFullPathForGitFiles List
GetLatestCommits List
GetLib2GitBranch Branch
GetRepository LibGit2Sharp.Repository
GitFileEventUpdate Task
GitRun string
HandleFileSystemChanged Task
HandleFileSystemChanged void
LoadHeadState void
SetBranchName void
TryGetRelativePath bool

공개 메소드들

메소드 설명
AddFile ( string filename ) : void
AddIgnoreItem ( string fileName ) : void
Blame ( string fileName ) : string
CheckOutBranch ( string branch, bool createNew = false ) : void
CheckOutFile ( string fileName ) : void
Checkout ( GitScc.GitBranchInfo info, bool force = false ) : GitActionResult
CheckoutAsync ( GitScc.GitBranchInfo info, bool force = false ) : Task>
Commit ( string message, bool amend = false, bool signoff = false ) : GitActionResult
CreateBranch ( string branchName, string commitish = "HEAD" ) : GitActionResult
CurrentCommitHasRefs ( ) : bool
Diff ( string fileName ) : string
DiffFile ( string fileName, string commitId1, string commitId2 ) : string
DisableRepositoryWatcher ( ) : void

Update status when some file change is detected in the .git dir

Dispose ( ) : void
EditIngoreFile ( ) : void
EnableRepositoryWatcher ( ) : void
GetBranchInfo ( bool includeRemote = true, bool includeLocal = true, bool forceReload = false ) : List
GetChangedFilesForCommit ( string commitIdSha ) : List
GetChanges ( string commitId1, string commitId2 ) : List
GetCommitsForFile ( string fileName ) : IEnumerable
GetCurrentChangeSet ( ) : Task>
GetFileStatus ( string fileName, bool forceRefresh = false ) : GitFileStatus
GetRevision ( string filename ) : string
GetUnmodifiedFileByAbsolutePath ( string filename, string sha = null ) : string
GetUnmodifiedFileByRelativePath ( string relativePath, string sha = null ) : string
GitRepository ( string directory ) : GitScc.DataServices
Init ( string folderName ) : string
Refresh ( ) : void
SetRemoteBranch ( GitScc.GitBranchInfo localBranch, string remoteName = "origin" ) : void
StageFile ( string fileName ) : void
UnStageFile ( string fileName ) : void
UndoFileChanges ( string filename ) : void

비공개 메소드들

메소드 설명
BuildChange ( LibGit2Sharp.PatchEntryChanges change ) : Change
CreateBranchInfoFromBranch ( Branch branch ) : GitScc.GitBranchInfo
CreateCommit ( LibGit2Sharp commit ) : GitScc.DataServices.Commit
CreateGitFileEvent ( FileSystemEventArgs e ) : Task
DecodeGitEvents ( ) : Task
DeleteBranch ( string name ) : string
FileChangedEvent ( ) : Task
FileExistsInGit ( string fileName ) : bool
FileExistsInGit ( string directory, string fileName ) : bool
FileExistsInRepo ( string fileName ) : bool
FileIgnored ( string filepath ) : bool
FireBranchChangedEvent ( string name ) : void
FireCommitShaChangedEvent ( string name ) : void
FireFileStatusUpdateEvent ( List files ) : void
FireFilesChangedEvent ( List files ) : void
GetBranchId ( string name ) : string
GetCommitById ( string sha ) : GitScc.DataServices.Commit
GetCurrentChangedFiles ( bool retryAllowed = true, Repository repository = null ) : GitFile>.Dictionary
GetCurrentFilesStatus ( ) : List
GetFullPathForGitFiles ( List files ) : List
GetLatestCommits ( int commitCount ) : List
GetLib2GitBranch ( GitScc.GitBranchInfo info ) : Branch
GetRepository ( ) : Repository
GitFileEventUpdate ( ) : Task

This is not very dry.. but It seems to cause a bunch of issues opening repos so fast.

GitRun ( string cmd ) : string
HandleFileSystemChanged ( ) : Task
HandleFileSystemChanged ( object sender, FileSystemEventArgs e ) : void
LoadHeadState ( ) : void
SetBranchName ( bool supressEvent = false ) : void
TryGetRelativePath ( string fileName, string &relativePath ) : bool

메소드 상세

AddFile() 공개 메소드

public AddFile ( string filename ) : void
filename string
리턴 void

AddIgnoreItem() 공개 메소드

public AddIgnoreItem ( string fileName ) : void
fileName string
리턴 void

Blame() 공개 메소드

public Blame ( string fileName ) : string
fileName string
리턴 string

CheckOutBranch() 공개 메소드

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

CheckOutFile() 공개 메소드

public CheckOutFile ( string fileName ) : void
fileName string
리턴 void

Checkout() 공개 메소드

public Checkout ( GitScc.GitBranchInfo info, bool force = false ) : GitActionResult
info GitScc.GitBranchInfo
force bool
리턴 GitActionResult

CheckoutAsync() 공개 메소드

public CheckoutAsync ( GitScc.GitBranchInfo info, bool force = false ) : Task>
info GitScc.GitBranchInfo
force bool
리턴 Task>

Commit() 공개 메소드

public Commit ( string message, bool amend = false, bool signoff = false ) : GitActionResult
message string
amend bool
signoff bool
리턴 GitActionResult

CreateBranch() 공개 메소드

public CreateBranch ( string branchName, string commitish = "HEAD" ) : GitActionResult
branchName string
commitish string
리턴 GitActionResult

CurrentCommitHasRefs() 공개 메소드

public CurrentCommitHasRefs ( ) : bool
리턴 bool

Diff() 공개 메소드

public Diff ( string fileName ) : string
fileName string
리턴 string

DiffFile() 공개 메소드

public DiffFile ( string fileName, string commitId1, string commitId2 ) : string
fileName string
commitId1 string
commitId2 string
리턴 string

DisableRepositoryWatcher() 공개 메소드

Update status when some file change is detected in the .git dir
public DisableRepositoryWatcher ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EditIngoreFile() 공개 메소드

public EditIngoreFile ( ) : void
리턴 void

EnableRepositoryWatcher() 공개 메소드

public EnableRepositoryWatcher ( ) : void
리턴 void

GetBranchInfo() 공개 메소드

public GetBranchInfo ( bool includeRemote = true, bool includeLocal = true, bool forceReload = false ) : List
includeRemote bool
includeLocal bool
forceReload bool
리턴 List

GetChangedFilesForCommit() 공개 메소드

public GetChangedFilesForCommit ( string commitIdSha ) : List
commitIdSha string
리턴 List

GetChanges() 공개 메소드

public GetChanges ( string commitId1, string commitId2 ) : List
commitId1 string
commitId2 string
리턴 List

GetCommitsForFile() 공개 메소드

public GetCommitsForFile ( string fileName ) : IEnumerable
fileName string
리턴 IEnumerable

GetCurrentChangeSet() 공개 메소드

public GetCurrentChangeSet ( ) : Task>
리턴 Task>

GetFileStatus() 공개 메소드

public GetFileStatus ( string fileName, bool forceRefresh = false ) : GitFileStatus
fileName string
forceRefresh bool
리턴 GitFileStatus

GetRevision() 공개 메소드

public GetRevision ( string filename ) : string
filename string
리턴 string

GetUnmodifiedFileByAbsolutePath() 공개 메소드

public GetUnmodifiedFileByAbsolutePath ( string filename, string sha = null ) : string
filename string
sha string
리턴 string

GetUnmodifiedFileByRelativePath() 공개 메소드

public GetUnmodifiedFileByRelativePath ( string relativePath, string sha = null ) : string
relativePath string
sha string
리턴 string

GitRepository() 공개 메소드

public GitRepository ( string directory ) : GitScc.DataServices
directory string
리턴 GitScc.DataServices

Init() 공개 정적인 메소드

public static Init ( string folderName ) : string
folderName string
리턴 string

Refresh() 공개 메소드

public Refresh ( ) : void
리턴 void

SetRemoteBranch() 공개 메소드

public SetRemoteBranch ( GitScc.GitBranchInfo localBranch, string remoteName = "origin" ) : void
localBranch GitScc.GitBranchInfo
remoteName string
리턴 void

StageFile() 공개 메소드

public StageFile ( string fileName ) : void
fileName string
리턴 void

UnStageFile() 공개 메소드

public UnStageFile ( string fileName ) : void
fileName string
리턴 void

UndoFileChanges() 공개 메소드

public UndoFileChanges ( string filename ) : void
filename string
리턴 void