C# Class DXVcs2Git.GitCmdWrapper

Mostra file Open project: Xarlot/DXVcs2Git Class Usage Examples

Public Methods

Method Description
Add ( string repoPath, string relativePath ) : void
Checkout ( string repoPath, string branch ) : void
Commit ( string repoPath, string comment, string author, string date ) : void
Fetch ( string remote, string repoPath, bool tags ) : void
FindCommit ( string repoPath, bool>.Func pred ) : GitCommit
GitCmdWrapper ( string gitPath ) : System
Init ( string repoPath ) : void
LFSPull ( string repoPath ) : void
Merge ( string repoPath, string remote, string targetBranch, string sourceBranch ) : void
Pull ( string repoPath ) : void
Push ( string repoPath ) : void
ResetHard ( string repoPath ) : void
ShallowClone ( string localPath, string branch, string remote ) : void

Private Methods

Method Description
CheckFail ( int code, string output, string errors ) : void
Escape ( string str ) : string
EscapeDoubleQuotes ( string comment ) : string
GetLog ( string repoPath, int from, string format ) : string
WaitForProcess ( string fileName, string workingDir, string &output, string &errors ) : int

Method Details

Add() public method

public Add ( string repoPath, string relativePath ) : void
repoPath string
relativePath string
return void

Checkout() public method

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

Commit() public method

public Commit ( string repoPath, string comment, string author, string date ) : void
repoPath string
comment string
author string
date string
return void

Fetch() public method

public Fetch ( string remote, string repoPath, bool tags ) : void
remote string
repoPath string
tags bool
return void

FindCommit() public method

public FindCommit ( string repoPath, bool>.Func pred ) : GitCommit
repoPath string
pred bool>.Func
return GitCommit

GitCmdWrapper() public method

public GitCmdWrapper ( string gitPath ) : System
gitPath string
return System

Init() public method

public Init ( string repoPath ) : void
repoPath string
return void

LFSPull() public method

public LFSPull ( string repoPath ) : void
repoPath string
return void

Merge() public method

public Merge ( string repoPath, string remote, string targetBranch, string sourceBranch ) : void
repoPath string
remote string
targetBranch string
sourceBranch string
return void

Pull() public method

public Pull ( string repoPath ) : void
repoPath string
return void

Push() public method

public Push ( string repoPath ) : void
repoPath string
return void

ResetHard() public method

public ResetHard ( string repoPath ) : void
repoPath string
return void

ShallowClone() public method

public ShallowClone ( string localPath, string branch, string remote ) : void
localPath string
branch string
remote string
return void