C# Class Rubberduck.SourceControl.GitProvider

Inheritance: SourceControlProviderBase
Afficher le fichier Open project: retailcoder/Rubberduck Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetSignature ( ) : Signature
GetSignature ( LibGit2Sharp repo ) : Signature
RequeryUnsyncedCommits ( ) : void

Method Details

AddFile() public méthode

public AddFile ( string filePath ) : void
filePath string
Résultat void

Checkout() public méthode

public Checkout ( string branch ) : void
branch string
Résultat void

Clone() public méthode

public Clone ( string remotePathOrUrl, string workingDirectory ) : IRepository
remotePathOrUrl string
workingDirectory string
Résultat IRepository

Commit() public méthode

public Commit ( string message ) : void
message string
Résultat void

CreateBranch() public méthode

public CreateBranch ( string branch ) : void
branch string
Résultat void

CreateBranch() public méthode

public CreateBranch ( string sourceBranch, string branch ) : void
sourceBranch string
branch string
Résultat void

DeleteBranch() public méthode

public DeleteBranch ( string branchName ) : void
branchName string
Résultat void

Fetch() public méthode

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

GitProvider() public méthode

public GitProvider ( VBProject project ) : System
project VBProject
Résultat System

GitProvider() public méthode

public GitProvider ( VBProject project, IRepository repository, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
wrapperFactory ICodePaneWrapperFactory
Résultat System

GitProvider() public méthode

public GitProvider ( VBProject project, IRepository repository, ICredentials credentials, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
credentials ICredentials
wrapperFactory ICodePaneWrapperFactory
Résultat System

GitProvider() public méthode

public GitProvider ( VBProject project, IRepository repository, ICredentials credentials, ICodePaneWrapperFactory wrapperFactory ) : System
project VBProject
repository IRepository
credentials ICredentials
wrapperFactory ICodePaneWrapperFactory
Résultat System

GitProvider() public méthode

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

Init() public méthode

public Init ( string directory, bool bare = false ) : IRepository
directory string
bare bool
Résultat IRepository

InitVBAProject() public méthode

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.
Résultat IRepository

Merge() public méthode

public Merge ( string sourceBranch, string destinationBranch ) : void
sourceBranch string
destinationBranch string
Résultat void

Publish() public méthode

public Publish ( string branch ) : void
branch string
Résultat void

Pull() public méthode

public Pull ( ) : void
Résultat void

Push() public méthode

public Push ( ) : void
Résultat void

RemoveFile() public méthode

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

Revert() public méthode

public Revert ( ) : void
Résultat void

Stage() public méthode

public Stage ( IEnumerable filePaths ) : void
filePaths IEnumerable
Résultat void

Stage() public méthode

public Stage ( string filePath ) : void
filePath string
Résultat void

Status() public méthode

public Status ( ) : IEnumerable
Résultat IEnumerable

Undo() public méthode

public Undo ( string filePath ) : void
filePath string
Résultat void

Unpublish() public méthode

public Unpublish ( string branch ) : void
branch string
Résultat void