Add data to a git repository using I{git fast-import}
Method __init__ @param repo: the git repository L{FastImport} acts on @type repo: L{GitRepository}
Method add_file Add a file
Method add_symlink Add a symlink
Method start_commit Start a fast import commit
Method deleteall Issue I{deleteall} to fastimport so we start from a empty tree
Method close Close fast-import issuing all pending actions
Method __del__ Undocumented
Method _do_data Undocumented
Method _do_file Undocumented
def __init__(self, repo):
@param repo: the git repository L{FastImport} acts on
@type repo: L{GitRepository}
def _do_data(self, fd, size):
Undocumented
def _do_file(self, filename, mode, fd, size):
Undocumented
def add_file(self, filename, fd, size, mode=m_regular):
Add a file

@param filename: the name of the file to add
@type filename: C{str}
@param fd: stream to read data from
@type fd: C{File} like object
@param size: size of the file to add
@type size: C{int}
@param mode: file mode, default is L{FastImport.m_regular}.
@type mode: C{int}
def add_symlink(self, linkname, linktarget):
Add a symlink

@param linkname: the symbolic link's name
@param linkname: C{str}
@param linktarget: the target the symlink points to
@type linktarget: C{str}
def start_commit(self, branch, committer, msg):
Start a fast import commit

@param branch: branch to commit on
@type branch: C{str}
@param committer: the committer information
@type committer: L{GitModifier}
@param msg: the commit message
@type msg: C{str}
def deleteall(self):
Issue I{deleteall} to fastimport so we start from a empty tree
def close(self):
Close fast-import issuing all pending actions
def __del__(self):
Undocumented
API Documentation for git-buildpackage, generated by pydoctor at 2019-10-31 18:15:14.