public function setBranches($name, $branch, $add = false)
    {
        $this->arguments[] = 'set-branches';
        if ($add) {
            $this->arguments[] = '--add';
        }
        $this->arguments[] = $name;
        $this->arguments[] = $branch;
        return $this;
    }
public function setBranches($name, $branch, $add = false)
    {
        $this->arguments[] = 'set-branches';
        if ($add) {
            $this->arguments[] = '--add';
        }
        $this->arguments[] = $name;
        $this->arguments[] = $branch;
        return $this;
    }
public function setBranches ( $ name , $ branch , $ add = false ) { $ this -> arguments [ ] = 'set-branches' ; if ( $ add ) { $ this -> arguments [ ] = '--add' ; } $ this -> arguments [ ] = $ name ; $ this -> arguments [ ] = $ branch ; return $ this ; }
Add the set-branches option to the command line.

@param string $name   Name of the remote.

@param string $branch Name of the branch.

@param bool   $add    Flag if the name should be added.

@return RemoteCommandBuilder
Add the set - branches option to the command line .