Gitonomy\Git\Repository::setDescription PHP Method

setDescription() public method

Changes the repository description (file description in git-directory).
public setDescription ( $description ) : Repository
return Repository the current repository
    public function setDescription($description)
    {
        $file = $this->gitDir . '/description';
        if (null !== $this->logger && true === $this->debug) {
            $this->logger->debug(sprintf('change description file content to "%s" (file: %s)', $description, $file));
        }
        file_put_contents($file, $description);
        return $this;
    }