TQ\Svn\Repository\Repository::removeFile PHP Метод

removeFile() публичный Метод

Removes a file and commit the changes immediately
public removeFile ( string $path, string | null $commitMsg = null, boolean $recursive = false, boolean $force = false, string | null $author = null ) : string
$path string The file path
$commitMsg string | null The commit message used when committing the changes
$recursive boolean True to recursively remove subdirectories
$force boolean True to continue even though SVN reports a possible conflict
$author string | null The author
Результат string The current commit hash
    public function removeFile($path, $commitMsg = null, $recursive = false, $force = false, $author = null)
    {
        $this->remove(array($path), $recursive, $force);
        if ($commitMsg === null) {
            $commitMsg = sprintf('%s deleted file "%s"', __CLASS__, $path);
        }
        $this->commit($commitMsg, array($path), $author);
        return $this->getCurrentCommit();
    }