/** * @param $fileName string * @return \Gitonomy\Git\Blob */ protected function getFile($fileName) { try { return $this->getEntry($this->commit->getTree(), $fileName); } catch (GitReferenceNotFoundException $e) { throw new ReferenceNotFoundException($e->getMessage()); } catch (GitInvalidArgumentException $e) { throw new InvalidArgumentException($e->getMessage()); } }