class documentation

class GitCommand: (source)

Implements interfaces: twisted.python._release.IVCSCommand

View In Hierarchy

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

Static Method ensureIsWorkingDirectory Ensure that path is a Git working directory.
Static Method exportTo Export the content of a Git repository to the specified 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.
@staticmethod
def ensureIsWorkingDirectory(path): (source)

Ensure that path is a Git working directory.

Parameters
path:twisted.python.filepath.FilePathThe path to check.
@staticmethod
def exportTo(fromDir, exportDir): (source)

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

Parameters
fromDir:twisted.python.filepath.FilePathThe path to the Git repository to export.
exportDir:twisted.python.filepath.FilePathThe directory to export the content of the repository to. This directory doesn't have to exist prior to exporting the repository.
@staticmethod
def isStatusClean(path): (source)

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

Parameters
path:twisted.python.filepath.FilePathThe path to get the status from (can be a directory or a file.)
@staticmethod
def remove(path): (source)

Remove the specified path from a Git repository.

Parameters
path:twisted.python.filepath.FilePathThe path to remove from the repository.