Implements interfaces: twisted.python._release.IVCSCommand

Subset of Git commands to release Twisted from a Git repository.

Static Method ensureIsWorkingDirectory Ensure that path is a Git working directory.
Static Method isStatusClean Return the Git status of the files in the specified path.
Static Method remove Remove the specified path from a Git repository.
Static Method exportTo Export the content of a Git repository to the specified directory.
@staticmethod
def ensureIsWorkingDirectory(path):

Ensure that path is a Git working directory.

ParameterspathThe path to check. (type: twisted.python.filepath.FilePath)
@staticmethod
def isStatusClean(path):

Return the Git status of the files in the specified path.

ParameterspathThe path to get the status from (can be a directory or a file.) (type: twisted.python.filepath.FilePath)
@staticmethod
def remove(path):

Remove the specified path from a Git repository.

ParameterspathThe path to remove from the repository. (type: twisted.python.filepath.FilePath)
@staticmethod
def exportTo(fromDir, exportDir):

Export the content of a Git repository to the specified directory.

ParametersfromDirThe path to the Git repository to export. (type: twisted.python.filepath.FilePath)
exportDirThe directory to export the content of the repository to. This directory doesn't have to exist prior to exporting the repository. (type: twisted.python.filepath.FilePath)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.