Example #1
0
 function branches_action()
 {
     $this->setBranch();
     $branches = $this->repo->listBranches();
     $repos = new \firegit\app\mod\git\Reposite();
     $existBranch = $repos->getBranchs($this->gitGroup, $this->gitName, $this->user);
     $existBranch = array_column($existBranch, 'branch');
     $this->set(array('pageTitle' => '分支列表', 'navType' => 'branch', 'branches' => $branches, 'notShowNav' => true, 'existBranch' => $existBranch))->setView('git/branches.phtml');
 }