C# Class common.BL.GitController

Exibir arquivo Open project: hddevteam/luckyci

Public Methods

Method Description
GirLogFundAuthor ( string workDirectory ) : string
GitClone ( string localRepository, string gitlabPath, string &cloneResult ) : string

添加项目时候,第一次进行clone

GitPull ( string localRepository, string &gitPullResult ) : string

获取gitlab远程库的代码,并且自动合并到本地。相当于svn的update

Libgit2_GitPull ( string localpath, string username, string password, string emailaddress ) : System.Boolean
git_checkout ( string checkoutCommand, string workDirectory ) : System.Boolean

进行分支的切换操作

libgit2_GitLog ( string localpath ) : string

Method Details

GirLogFundAuthor() public method

public GirLogFundAuthor ( string workDirectory ) : string
workDirectory string
return string

GitClone() public method

添加项目时候,第一次进行clone
public GitClone ( string localRepository, string gitlabPath, string &cloneResult ) : string
localRepository string 本地git库
gitlabPath string gitlab远程库
cloneResult string 返回的结果
return string

GitPull() public method

获取gitlab远程库的代码,并且自动合并到本地。相当于svn的update
public GitPull ( string localRepository, string &gitPullResult ) : string
localRepository string
gitPullResult string
return string

Libgit2_GitPull() public method

public Libgit2_GitPull ( string localpath, string username, string password, string emailaddress ) : System.Boolean
localpath string
username string
password string
emailaddress string
return System.Boolean

git_checkout() public method

进行分支的切换操作
public git_checkout ( string checkoutCommand, string workDirectory ) : System.Boolean
checkoutCommand string 切换分支命名
workDirectory string 工作路径
return System.Boolean

libgit2_GitLog() public method

public libgit2_GitLog ( string localpath ) : string
localpath string
return string