GitWrapper\GitWorkingCopy::fetchAll PHP Метод

fetchAll() публичный Метод

This is synonymous with git fetch --all.
См. также: GitWorkingCopy::fetch()
public fetchAll ( array $options = [] )
$options array (optional) An associative array of command line options.
    public function fetchAll(array $options = array())
    {
        $options['all'] = true;
        return $this->fetch($options);
    }

Usage Example

Пример #1
0
 /**
  * @return string
  */
 public function getCommitHash($rep = 'HEAD')
 {
     $this->git->fetchAll();
     return trim($this->wrapper->git('rev-parse ' . $rep));
 }