C# Class Rubberduck.SourceControl.GitProvider

Inheritance: SourceControlProviderBase
Exibir arquivo Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
AddFile ( string filePath ) : void
Checkout ( string branch ) : void
Clone ( string remotePathOrUrl, string workingDirectory ) : IRepository
Commit ( string message ) : void
CreateBranch ( string branch ) : void
CreateBranch ( string sourceBranch, string branch ) : void
DeleteBranch ( string branchName ) : void
Fetch ( [ remoteName ) : void

Fetches the specified remote for tracking. If not argument is supplied, fetches the "origin" remote.

GitProvider ( VBProject project ) : System
GitProvider ( VBProject project, IRepository repository, ICodePaneWrapperFactory wrapperFactory ) : System
GitProvider ( VBProject project, IRepository repository, ICredentials credentials, ICodePaneWrapperFactory wrapperFactory ) : System
GitProvider ( VBProject project, IRepository repository, ICredentials credentials, ICodePaneWrapperFactory wrapperFactory ) : System
GitProvider ( VBProject project, IRepository repository, string userName, string passWord, ICodePaneWrapperFactory wrapperFactory ) : System
Init ( string directory, bool bare = false ) : IRepository
InitVBAProject ( string directory ) : IRepository

Exports files from VBProject to the file system, initalizes the repository, and creates an inital commit of those files to the repo.

Merge ( string sourceBranch, string destinationBranch ) : void
Publish ( string branch ) : void
Pull ( ) : void
Push ( ) : void
RemoveFile ( string filePath ) : void

Removes file from staging area, but leaves the file in the working directory.

Revert ( ) : void
Stage ( IEnumerable filePaths ) : void
Stage ( string filePath ) : void
Status ( ) : IEnumerable
Undo ( string filePath ) : void
Unpublish ( string branch ) : void

Private Methods

Method Description
GetSignature ( ) : Signature
GetSignature ( LibGit2Sharp repo ) : Signature
RequeryUnsyncedCommits ( ) : void

Method Details

AddFile() public method

public AddFile ( string filePath ) : void
filePath string
return void

Checkout() public method

public Checkout ( string branch ) : void
branch string
return void

Clone() public method

public Clone ( string remotePathOrUrl, string workingDirectory ) : IRepository
remotePathOrUrl string
workingDirectory string
return IRepository

Commit() public method

public Commit ( string message ) : void
message string
return void

CreateBranch() public method

public CreateBranch ( string branch ) : void
branch string
return void

CreateBranch() public method

public CreateBranch ( string sourceBranch, string branch ) : void
sourceBranch string
branch string
return void

DeleteBranch() public method

public DeleteBranch ( string branchName ) : void
branchName string
return void

Fetch() public method

Fetches the specified remote for tracking. If not argument is supplied, fetches the "origin" remote.
public Fetch ( [ remoteName ) : void
remoteName [
return void

GitProvider() public method

public GitProvider ( VBProject project ) : System
project VBProject
return System

GitProvider() public method

public GitProvider ( VBProject project, IRepository repository, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
wrapperFactory ICodePaneWrapperFactory
return System

GitProvider() public method

public GitProvider ( VBProject project, IRepository repository, ICredentials credentials, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
credentials ICredentials
wrapperFactory ICodePaneWrapperFactory
return System

GitProvider() public method

public GitProvider ( VBProject project, IRepository repository, ICredentials credentials, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
credentials ICredentials
wrapperFactory ICodePaneWrapperFactory
return System

GitProvider() public method

public GitProvider ( VBProject project, IRepository repository, string userName, string passWord, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
userName string
passWord string
wrapperFactory ICodePaneWrapperFactory
return System

Init() public method

public Init ( string directory, bool bare = false ) : IRepository
directory string
bare bool
return IRepository

InitVBAProject() public method

Exports files from VBProject to the file system, initalizes the repository, and creates an inital commit of those files to the repo.
public InitVBAProject ( string directory ) : IRepository
directory string Local file path of the directory where the new repository will be created.
return IRepository

Merge() public method

public Merge ( string sourceBranch, string destinationBranch ) : void
sourceBranch string
destinationBranch string
return void

Publish() public method

public Publish ( string branch ) : void
branch string
return void

Pull() public method

public Pull ( ) : void
return void

Push() public method

public Push ( ) : void
return void

RemoveFile() public method

Removes file from staging area, but leaves the file in the working directory.
public RemoveFile ( string filePath ) : void
filePath string
return void

Revert() public method

public Revert ( ) : void
return void

Stage() public method

public Stage ( IEnumerable filePaths ) : void
filePaths IEnumerable
return void

Stage() public method

public Stage ( string filePath ) : void
filePath string
return void

Status() public method

public Status ( ) : IEnumerable
return IEnumerable

Undo() public method

public Undo ( string filePath ) : void
filePath string
return void

Unpublish() public method

public Unpublish ( string branch ) : void
branch string
return void