public function getBranchesList($keep_asterisk = false)
    {
        $branchArray = explode("\n", $this->run("branch"));
        foreach ($branchArray as $i => &$branch) {
            $branch = trim($branch);
            if (! $keep_asterisk) {
                $branch = str_replace("* ", "", $branch);
            }
            if ($branch == "") {
                unset($branchArray[$i]);
            }
        }
        return $branchArray;
    }
public function getBranchesList($keep_asterisk = false)
    {
        $branchArray = explode("\n", $this->run("branch"));
        foreach ($branchArray as $i => &$branch) {
            $branch = trim($branch);
            if (! $keep_asterisk) {
                $branch = str_replace("* ", "", $branch);
            }
            if ($branch == "") {
                unset($branchArray[$i]);
            }
        }
        return $branchArray;
    }
public function getBranchesList ( $ keep_asterisk = false ) { $ branchArray = explode ( "\n" , $ this -> run ( "branch" ) ) ; foreach ( $ branchArray as $ i => & $ branch ) { $ branch = trim ( $ branch ) ; if ( ! $ keep_asterisk ) { $ branch = str_replace ( "* " , "" , $ branch ) ; } if ( $ branch == "" ) { unset ( $ branchArray [ $ i ] ) ; } } return $ branchArray ; }
Runs a `git branch` call

@param   bool    $keep_asterisk keep asterisk mark on active branch
@return  array
Runs a git branch call