public function showFile($file, $ref = 'HEAD')
    {
        /** @var $result CallResult */
        $result = $this->getGit()->{'show'}($this->getRepositoryPath(), array(
            sprintf('%s:%s', $ref, $file)
        ));
        $result->assertSuccess(sprintf('Cannot show "%s" at "%s" from "%s"',
            $file, $ref, $this->getRepositoryPath()
        ));


        return $result->getStdOut();
    }
public function showFile($file, $ref = 'HEAD')
    {
        /** @var $result CallResult */
        $result = $this->getGit()->{'show'}($this->getRepositoryPath(), array(
            sprintf('%s:%s', $ref, $file)
        ));
        $result->assertSuccess(sprintf('Cannot show "%s" at "%s" from "%s"',
            $file, $ref, $this->getRepositoryPath()
        ));


        return $result->getStdOut();
    }
public function showFile ( $ file , $ ref = 'HEAD' ) { /** @var $result CallResult */ $ result = $ this -> getGit ( ) -> { 'show' } ( $ this -> getRepositoryPath ( ) , array ( sprintf ( '%s:%s' , $ ref , $ file ) ) ) ; $ result -> assertSuccess ( sprintf ( 'Cannot show "%s" at "%s" from "%s"' , $ file , $ ref , $ this -> getRepositoryPath ( ) ) ) ; return $ result -> getStdOut ( ) ; }
Returns the content of a file at a given version

@param   string  $file       The path to the file
@param   string  $ref        The version ref
@return  string
Returns the content of a file at a given version