Search in sources :

Example 1 with BranchInfo

use of com.orion.vcs.git.info.BranchInfo in project orion-ops by lijiahangmax.

the class ApplicationVcsServiceImpl method getVcsBranchList.

@Override
public List<ApplicationVcsBranchVO> getVcsBranchList(Long id) {
    // 打开git
    try (Gits gits = this.openEventGit(id)) {
        gits.fetch();
        // 查询分支信息
        List<BranchInfo> branchList = gits.branchList();
        return Converts.toList(branchList, ApplicationVcsBranchVO.class);
    }
}
Also used : Gits(com.orion.vcs.git.Gits) BranchInfo(com.orion.vcs.git.info.BranchInfo)

Aggregations

Gits (com.orion.vcs.git.Gits)1 BranchInfo (com.orion.vcs.git.info.BranchInfo)1