code: public function getBranches()
      {
          if ($this->gitDriver) {
              return $this->gitDriver->getBranches();
          }
  
          if (!$this->branches) {
              $this->branches = $this->getReferences('branches');
          }
  
          return $this->branches;
      }
docs: {@inheritDoc}