gbp.git.fastimport.FastImport(object)
class documentationgbp.git.fastimport
(View In Hierarchy)
Add data to a git repository using git fast-import
Class Variable | m_regular | Undocumented |
Class Variable | m_exec | Undocumented |
Class Variable | m_symlink | Undocumented |
Method | __init__ | |
Method | add_file | Add a file |
Method | add_symlink | Add a symlink |
Method | start_commit | Start a fast import commit |
Method | deleteall | Issue deleteall to fastimport so we start from a empty tree |
Method | close | Close fast-import issuing all pending actions |
Method | __del__ | Undocumented |
Class Variable | _bufsize | Undocumented |
Instance Variable | _repo | Undocumented |
Instance Variable | _fi | Undocumented |
Instance Variable | _out | Undocumented |
Method | _do_data | Undocumented |
Method | _do_file | Undocumented |
Add a file
Parameters | filename | the name of the file to add (type: str ) |
fd | stream to read data from (type: File like object) | |
size | size of the file to add (type: int ) | |
mode | file mode, default is FastImport.m_regular . (type: int ) |
Add a symlink
Parameters | linkname | the symbolic link's name |
linkname | str | |
linktarget | the target the symlink points to (type: str ) |
Start a fast import commit
Parameters | branch | branch to commit on (type: str ) |
committer | the committer information (type: GitModifier ) | |
msg | the commit message (type: str ) |