original_string: public function getCurrentBranch()
      {
          /** @var $result CallResult */
          $result = $this->getGit()->{'rev-parse'}($this->getRepositoryPath(), array(
              '--symbolic-full-name',
              '--abbrev-ref',
              'HEAD'
          ));
          $result->assertSuccess(
              sprintf('Cannot retrieve current branch from "%s"', $this->getRepositoryPath())
          );
  
          return $result->getStdOut();
      }
code: public function getCurrentBranch()
      {
          /** @var $result CallResult */
          $result = $this->getGit()->{'rev-parse'}($this->getRepositoryPath(), array(
              '--symbolic-full-name',
              '--abbrev-ref',
              'HEAD'
          ));
          $result->assertSuccess(
              sprintf('Cannot retrieve current branch from "%s"', $this->getRepositoryPath())
          );
  
          return $result->getStdOut();
      }
code_tokens: public function getCurrentBranch ( ) { /** @var $result CallResult */ $ result = $ this -> getGit ( ) -> { 'rev-parse' } ( $ this -> getRepositoryPath ( ) , array ( '--symbolic-full-name' , '--abbrev-ref' , 'HEAD' ) ) ; $ result -> assertSuccess ( sprintf ( 'Cannot retrieve current branch from "%s"' , $ this -> getRepositoryPath ( ) ) ) ; return $ result -> getStdOut ( ) ; }
docstring: Returns the name of the current branch
  
  @return  string
docstring_tokens: Returns the name of the current branch