public function prepare($name, $url, $options = array())
    {
        $options = $this->normalizeOptions(
            $options,
            $this->addCmdSwitchOptions(),
            $this->addCmdValueOptions()
        );

        $this->addCommandName(self::GIT_REMOTE_ADD);
        $this->addCommandSubject($name);
        $this->addCommandSubject($url);
        foreach ($options as $option) {
            $this->addCommandArgument($option);
        }

        return $this;
    }
public function prepare($name, $url, $options = array())
    {
        $options = $this->normalizeOptions(
            $options,
            $this->addCmdSwitchOptions(),
            $this->addCmdValueOptions()
        );

        $this->addCommandName(self::GIT_REMOTE_ADD);
        $this->addCommandSubject($name);
        $this->addCommandSubject($url);
        foreach ($options as $option) {
            $this->addCommandArgument($option);
        }

        return $this;
    }
public function prepare ( $ name , $ url , $ options = array ( ) ) { $ options = $ this -> normalizeOptions ( $ options , $ this -> addCmdSwitchOptions ( ) , $ this -> addCmdValueOptions ( ) ) ; $ this -> addCommandName ( self :: GIT_REMOTE_ADD ) ; $ this -> addCommandSubject ( $ name ) ; $ this -> addCommandSubject ( $ url ) ; foreach ( $ options as $ option ) { $ this -> addCommandArgument ( $ option ) ; } return $ this ; }
build add sub command

@param string $name    remote name
@param string $url     URL of remote
@param array  $options options for the add subcommand

@return string
build add sub command