public function singleInfo($name, $all = false, $simple = false, $verbose = false)
    {
        $this->clearAll();
        $this->addCommandName(self::BRANCH_COMMAND);
        if (!$simple) {
            $this->addCommandArgument('-v');
        }
        $this->addCommandArgument('--list');
        $this->addCommandArgument('--no-color');
        $this->addCommandArgument('--no-abbrev');
        if ($all) {
            $this->addCommandArgument('-a');
        }
        if ($verbose) {
            $this->addCommandArgument('-vv');
        }
        $this->addCommandSubject($name);

        return $this->getCommand();
    }
public function singleInfo($name, $all = false, $simple = false, $verbose = false)
    {
        $this->clearAll();
        $this->addCommandName(self::BRANCH_COMMAND);
        if (!$simple) {
            $this->addCommandArgument('-v');
        }
        $this->addCommandArgument('--list');
        $this->addCommandArgument('--no-color');
        $this->addCommandArgument('--no-abbrev');
        if ($all) {
            $this->addCommandArgument('-a');
        }
        if ($verbose) {
            $this->addCommandArgument('-vv');
        }
        $this->addCommandSubject($name);

        return $this->getCommand();
    }
public function singleInfo ( $ name , $ all = false , $ simple = false , $ verbose = false ) { $ this -> clearAll ( ) ; $ this -> addCommandName ( self :: BRANCH_COMMAND ) ; if ( ! $ simple ) { $ this -> addCommandArgument ( '-v' ) ; } $ this -> addCommandArgument ( '--list' ) ; $ this -> addCommandArgument ( '--no-color' ) ; $ this -> addCommandArgument ( '--no-abbrev' ) ; if ( $ all ) { $ this -> addCommandArgument ( '-a' ) ; } if ( $ verbose ) { $ this -> addCommandArgument ( '-vv' ) ; } $ this -> addCommandSubject ( $ name ) ; return $ this -> getCommand ( ) ; }
get info about a single branch

@param string $name    The branch name
@param bool   $all     lists all remotes
@param bool   $simple  list only branch names
@param bool   $verbose verbose, show also the upstream branch

@throws \RuntimeException
@return string
get info about a single branch