C# Class MonoDevelop.VersionControl.Git.GitRepository

Inheritance: UrlBasedRepository
ファイルを表示 Open project: LogosBible/monodevelop Class Usage Examples

Private Properties

Property Type Description
CollectFiles void
DeleteCore void
GenerateDiff string
GetCommitContent byte[]
GetCommitTextContent string
GetDirectoryFiles IEnumerable
GetDirectoryVersionInfo VersionInfo[]
GetDirectoryVersionInfoCore void
GetFileContent byte[]
GetFilesInPaths List
GetHeadCommit NGit.Revwalk.RevCommit
GetPreviousRevisionFor GitRevision
GetRepository NGit.Repository
GetStashForBranch Stash
GetStashName string
GetSubmodulesToUpdate bool
GetUnifiedDiffInfo DiffInfo[]
GroupByRepository FilePath>>.IEnumerable
IsSubpath bool
Merge void
NotifyFileChanges void
OnDeleteDirectories void
OnDeleteFiles void
Rebase void
ResolveConflict ConflictResult

Public Methods

Method Description
AddRemote ( RemoteSource remote, bool importTags ) : void
AddTag ( string name, Revision rev, string message ) : void
CopyConfigurationFrom ( Repository other ) : void
CreateBranch ( string name, string trackSource ) : void
CreateBranchFromCommit ( string name, NGit.Revwalk.RevCommit id ) : void
Dispose ( ) : void
Fetch ( IProgressMonitor monitor ) : void
GenerateDiff ( FilePath baseLocalPath, VersionInfo versionInfo ) : DiffInfo
GetAnnotations ( FilePath repositoryPath ) : Annotation[]
GetBaseText ( FilePath localFile ) : string
GetBranches ( ) : IEnumerable
GetCurrentBranch ( ) : string
GetCurrentRemote ( ) : string
GetPushChangeSet ( string remote, string branch ) : ChangeSet
GetPushDiff ( string remote, string branch ) : DiffInfo[]
GetRemoteBranches ( string remoteName ) : IEnumerable
GetRemotes ( ) : IEnumerable
GetStashBranchName ( string stashName ) : string
GetStashes ( ) : StashCollection
GetStashes ( NGit repository ) : StashCollection
GetTags ( ) : IEnumerable
GetUserInfo ( string &name, string &email ) : void
GitRepository ( ) : System
GitRepository ( FilePath path, string url ) : System
IsBranchMerged ( string branchName ) : bool
IsUrlValid ( string url ) : bool
IsUserInfoDefault ( ) : bool
Merge ( string branch, GitUpdateOptions options, IProgressMonitor monitor ) : void
PathDiff ( FilePath baseLocalPath, FilePath localPaths, bool remoteDiff ) : DiffInfo[]
Push ( IProgressMonitor monitor, string remote, string remoteBranch ) : void
PushAllTags ( ) : void
Rebase ( string upstreamRef, GitUpdateOptions options, IProgressMonitor monitor ) : void
RemoveBranch ( string name ) : void
RemoveRemote ( string name ) : void
RemoveTag ( string name ) : void
RenameBranch ( string name, string newName ) : void
RenameRemote ( string name, string newName ) : void
SetBranchTrackSource ( string name, string trackSource ) : void
SetUserInfo ( string name, string email ) : void
SwitchToBranch ( IProgressMonitor monitor, string branch ) : void
UpdateRemote ( RemoteSource remote ) : void

Protected Methods

Method Description
GetSupportedOperations ( VersionInfo vinfo ) : VersionControlOperation
OnAdd ( FilePath localPaths, bool recurse, IProgressMonitor monitor ) : void
OnCheckout ( FilePath targetLocalPath, Revision rev, bool recurse, IProgressMonitor monitor ) : void
OnCommit ( ChangeSet changeSet, IProgressMonitor monitor ) : void
OnDeleteDirectories ( FilePath localPaths, bool force, IProgressMonitor monitor, bool keepLocal ) : void
OnDeleteFiles ( FilePath localPaths, bool force, IProgressMonitor monitor, bool keepLocal ) : void
OnGetDirectoryVersionInfo ( FilePath localDirectory, bool getRemoteStatus, bool recursive ) : VersionInfo[]
OnGetHistory ( FilePath localFile, Revision since ) : Revision[]
OnGetRevisionChanges ( Revision revision ) : RevisionPath[]
OnGetTextAtRevision ( FilePath repositoryPath, Revision revision ) : string
OnGetVersionInfo ( IEnumerable paths, bool getRemoteStatus ) : IEnumerable
OnIgnore ( FilePath localPath ) : void
OnMoveDirectory ( FilePath localSrcPath, FilePath localDestPath, bool force, IProgressMonitor monitor ) : void
OnMoveFile ( FilePath localSrcPath, FilePath localDestPath, bool force, IProgressMonitor monitor ) : void
OnPublish ( string serverPath, FilePath localPath, FilePath files, string message, IProgressMonitor monitor ) : Repository
OnRevert ( FilePath localPaths, bool recurse, IProgressMonitor monitor ) : void
OnRevertRevision ( FilePath localPath, Revision revision, IProgressMonitor monitor ) : void
OnRevertToRevision ( FilePath localPath, Revision revision, IProgressMonitor monitor ) : void
OnUnignore ( FilePath localPath ) : void
OnUpdate ( FilePath localPaths, bool recurse, IProgressMonitor monitor ) : void

Private Methods

Method Description
CollectFiles ( HashSet files, List directories, FilePath dir, bool recursive ) : void
DeleteCore ( FilePath localPaths, bool force, IProgressMonitor monitor, bool keepLocal ) : void
GenerateDiff ( byte data1, byte data2 ) : string
GetCommitContent ( NGit.Revwalk.RevCommit c, FilePath file ) : byte[]
GetCommitTextContent ( NGit.Revwalk.RevCommit c, FilePath file ) : string
GetDirectoryFiles ( DirectoryInfo dir ) : IEnumerable
GetDirectoryVersionInfo ( FilePath localDirectory, IEnumerable localFileNames, bool getRemoteStatus, bool recursive ) : VersionInfo[]
GetDirectoryVersionInfoCore ( NGit repository, GitRevision rev, IEnumerable localPaths, HashSet existingFiles, HashSet nonVersionedMissingFiles, List versions ) : void
GetFileContent ( string file ) : byte[]
GetFilesInPaths ( IEnumerable paths ) : List
GetHeadCommit ( NGit repository ) : NGit.Revwalk.RevCommit
GetPreviousRevisionFor ( GitRevision revision ) : GitRevision
GetRepository ( FilePath localPath ) : NGit.Repository
GetStashForBranch ( StashCollection stashes, string branchName ) : Stash
GetStashName ( string branchName ) : string
GetSubmodulesToUpdate ( List updateSubmodules ) : bool
GetUnifiedDiffInfo ( string diffContent, FilePath basePath, FilePath localPaths ) : DiffInfo[]
GroupByRepository ( IEnumerable files ) : FilePath>>.IEnumerable
IsSubpath ( string basePath, string childPath ) : bool
Merge ( string upstreamRef, bool saveLocalChanges, IProgressMonitor monitor ) : void
NotifyFileChanges ( IProgressMonitor monitor, IEnumerable statusList ) : void
OnDeleteDirectories ( FilePath localPaths, bool force, IProgressMonitor monitor ) : void
OnDeleteFiles ( FilePath localPaths, bool force, IProgressMonitor monitor ) : void
Rebase ( string upstreamRef, bool saveLocalChanges, IProgressMonitor monitor ) : void
ResolveConflict ( string file ) : ConflictResult

Method Details

AddRemote() public method

public AddRemote ( RemoteSource remote, bool importTags ) : void
remote RemoteSource
importTags bool
return void

AddTag() public method

public AddTag ( string name, Revision rev, string message ) : void
name string
rev Revision
message string
return void

CopyConfigurationFrom() public method

public CopyConfigurationFrom ( Repository other ) : void
other Repository
return void

CreateBranch() public method

public CreateBranch ( string name, string trackSource ) : void
name string
trackSource string
return void

CreateBranchFromCommit() public method

public CreateBranchFromCommit ( string name, NGit.Revwalk.RevCommit id ) : void
name string
id NGit.Revwalk.RevCommit
return void

Dispose() public method

public Dispose ( ) : void
return void

Fetch() public method

public Fetch ( IProgressMonitor monitor ) : void
monitor IProgressMonitor
return void

GenerateDiff() public method

public GenerateDiff ( FilePath baseLocalPath, VersionInfo versionInfo ) : DiffInfo
baseLocalPath FilePath
versionInfo VersionInfo
return DiffInfo

GetAnnotations() public method

public GetAnnotations ( FilePath repositoryPath ) : Annotation[]
repositoryPath FilePath
return Annotation[]

GetBaseText() public method

public GetBaseText ( FilePath localFile ) : string
localFile FilePath
return string

GetBranches() public method

public GetBranches ( ) : IEnumerable
return IEnumerable

GetCurrentBranch() public method

public GetCurrentBranch ( ) : string
return string

GetCurrentRemote() public method

public GetCurrentRemote ( ) : string
return string

GetPushChangeSet() public method

public GetPushChangeSet ( string remote, string branch ) : ChangeSet
remote string
branch string
return ChangeSet

GetPushDiff() public method

public GetPushDiff ( string remote, string branch ) : DiffInfo[]
remote string
branch string
return DiffInfo[]

GetRemoteBranches() public method

public GetRemoteBranches ( string remoteName ) : IEnumerable
remoteName string
return IEnumerable

GetRemotes() public method

public GetRemotes ( ) : IEnumerable
return IEnumerable

GetStashBranchName() public static method

public static GetStashBranchName ( string stashName ) : string
stashName string
return string

GetStashes() public method

public GetStashes ( ) : StashCollection
return StashCollection

GetStashes() public static method

public static GetStashes ( NGit repository ) : StashCollection
repository NGit
return StashCollection

GetSupportedOperations() protected method

protected GetSupportedOperations ( VersionInfo vinfo ) : VersionControlOperation
vinfo VersionInfo
return VersionControlOperation

GetTags() public method

public GetTags ( ) : IEnumerable
return IEnumerable

GetUserInfo() public method

public GetUserInfo ( string &name, string &email ) : void
name string
email string
return void

GitRepository() public method

public GitRepository ( ) : System
return System

GitRepository() public method

public GitRepository ( FilePath path, string url ) : System
path FilePath
url string
return System

IsBranchMerged() public method

public IsBranchMerged ( string branchName ) : bool
branchName string
return bool

IsUrlValid() public method

public IsUrlValid ( string url ) : bool
url string
return bool

IsUserInfoDefault() public method

public IsUserInfoDefault ( ) : bool
return bool

Merge() public method

public Merge ( string branch, GitUpdateOptions options, IProgressMonitor monitor ) : void
branch string
options GitUpdateOptions
monitor IProgressMonitor
return void

OnAdd() protected method

protected OnAdd ( FilePath localPaths, bool recurse, IProgressMonitor monitor ) : void
localPaths FilePath
recurse bool
monitor IProgressMonitor
return void

OnCheckout() protected method

protected OnCheckout ( FilePath targetLocalPath, Revision rev, bool recurse, IProgressMonitor monitor ) : void
targetLocalPath FilePath
rev Revision
recurse bool
monitor IProgressMonitor
return void

OnCommit() protected method

protected OnCommit ( ChangeSet changeSet, IProgressMonitor monitor ) : void
changeSet ChangeSet
monitor IProgressMonitor
return void

OnDeleteDirectories() protected method

protected OnDeleteDirectories ( FilePath localPaths, bool force, IProgressMonitor monitor, bool keepLocal ) : void
localPaths FilePath
force bool
monitor IProgressMonitor
keepLocal bool
return void

OnDeleteFiles() protected method

protected OnDeleteFiles ( FilePath localPaths, bool force, IProgressMonitor monitor, bool keepLocal ) : void
localPaths FilePath
force bool
monitor IProgressMonitor
keepLocal bool
return void

OnGetDirectoryVersionInfo() protected method

protected OnGetDirectoryVersionInfo ( FilePath localDirectory, bool getRemoteStatus, bool recursive ) : VersionInfo[]
localDirectory FilePath
getRemoteStatus bool
recursive bool
return VersionInfo[]

OnGetHistory() protected method

protected OnGetHistory ( FilePath localFile, Revision since ) : Revision[]
localFile FilePath
since Revision
return Revision[]

OnGetRevisionChanges() protected method

protected OnGetRevisionChanges ( Revision revision ) : RevisionPath[]
revision Revision
return RevisionPath[]

OnGetTextAtRevision() protected method

protected OnGetTextAtRevision ( FilePath repositoryPath, Revision revision ) : string
repositoryPath FilePath
revision Revision
return string

OnGetVersionInfo() protected method

protected OnGetVersionInfo ( IEnumerable paths, bool getRemoteStatus ) : IEnumerable
paths IEnumerable
getRemoteStatus bool
return IEnumerable

OnIgnore() protected method

protected OnIgnore ( FilePath localPath ) : void
localPath FilePath
return void

OnMoveDirectory() protected method

protected OnMoveDirectory ( FilePath localSrcPath, FilePath localDestPath, bool force, IProgressMonitor monitor ) : void
localSrcPath FilePath
localDestPath FilePath
force bool
monitor IProgressMonitor
return void

OnMoveFile() protected method

protected OnMoveFile ( FilePath localSrcPath, FilePath localDestPath, bool force, IProgressMonitor monitor ) : void
localSrcPath FilePath
localDestPath FilePath
force bool
monitor IProgressMonitor
return void

OnPublish() protected method

protected OnPublish ( string serverPath, FilePath localPath, FilePath files, string message, IProgressMonitor monitor ) : Repository
serverPath string
localPath FilePath
files FilePath
message string
monitor IProgressMonitor
return Repository

OnRevert() protected method

protected OnRevert ( FilePath localPaths, bool recurse, IProgressMonitor monitor ) : void
localPaths FilePath
recurse bool
monitor IProgressMonitor
return void

OnRevertRevision() protected method

protected OnRevertRevision ( FilePath localPath, Revision revision, IProgressMonitor monitor ) : void
localPath FilePath
revision Revision
monitor IProgressMonitor
return void

OnRevertToRevision() protected method

protected OnRevertToRevision ( FilePath localPath, Revision revision, IProgressMonitor monitor ) : void
localPath FilePath
revision Revision
monitor IProgressMonitor
return void

OnUnignore() protected method

protected OnUnignore ( FilePath localPath ) : void
localPath FilePath
return void

OnUpdate() protected method

protected OnUpdate ( FilePath localPaths, bool recurse, IProgressMonitor monitor ) : void
localPaths FilePath
recurse bool
monitor IProgressMonitor
return void

PathDiff() public method

public PathDiff ( FilePath baseLocalPath, FilePath localPaths, bool remoteDiff ) : DiffInfo[]
baseLocalPath FilePath
localPaths FilePath
remoteDiff bool
return DiffInfo[]

Push() public method

public Push ( IProgressMonitor monitor, string remote, string remoteBranch ) : void
monitor IProgressMonitor
remote string
remoteBranch string
return void

PushAllTags() public method

public PushAllTags ( ) : void
return void

Rebase() public method

public Rebase ( string upstreamRef, GitUpdateOptions options, IProgressMonitor monitor ) : void
upstreamRef string
options GitUpdateOptions
monitor IProgressMonitor
return void

RemoveBranch() public method

public RemoveBranch ( string name ) : void
name string
return void

RemoveRemote() public method

public RemoveRemote ( string name ) : void
name string
return void

RemoveTag() public method

public RemoveTag ( string name ) : void
name string
return void

RenameBranch() public method

public RenameBranch ( string name, string newName ) : void
name string
newName string
return void

RenameRemote() public method

public RenameRemote ( string name, string newName ) : void
name string
newName string
return void

SetBranchTrackSource() public method

public SetBranchTrackSource ( string name, string trackSource ) : void
name string
trackSource string
return void

SetUserInfo() public method

public SetUserInfo ( string name, string email ) : void
name string
email string
return void

SwitchToBranch() public method

public SwitchToBranch ( IProgressMonitor monitor, string branch ) : void
monitor IProgressMonitor
branch string
return void

UpdateRemote() public method

public UpdateRemote ( RemoteSource remote ) : void
remote RemoteSource
return void