gbp.git.fastimport.FastImport(object)
class documentationgbp.git.fastimport
(View In Hierarchy)
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 |
@param repo: the git repository L{FastImport} acts on @type repo: L{GitRepository}
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}
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}