class documentation

class FastImport(object):

View In Hierarchy

Add data to a git repository using git fast-import

Method __del__ Undocumented
Method __init__ No summary
Method add_file Add a file
Method add_symlink Add a symlink
Method close Close fast-import issuing all pending actions
Method deleteall Issue deleteall to fastimport so we start from a empty tree
Method start_commit Start a fast import commit
Class Variable m_exec Undocumented
Class Variable m_regular Undocumented
Class Variable m_symlink Undocumented
Method _do_data Undocumented
Method _do_file Undocumented
Class Variable _bufsize Undocumented
Instance Variable _fi Undocumented
Instance Variable _out Undocumented
Instance Variable _repo Undocumented
def __del__(self):

Undocumented

def __init__(self, repo):
Parameters
repo:GitRepositorythe git repository FastImport acts on
def add_file(self, filename, fd, size, mode=m_regular):

Add a file

Parameters
filename:strthe name of the file to add
fd:File like objectstream to read data from
size:intsize of the file to add
mode:intfile mode, default is FastImport.m_regular.
def add_symlink(self, linkname, linktarget):

Add a symlink

Parameters
linknamestr
linktarget:strthe target the symlink points to
def close(self):

Close fast-import issuing all pending actions

def deleteall(self):

Issue deleteall to fastimport so we start from a empty tree

def start_commit(self, branch, committer, msg):

Start a fast import commit

Parameters
branch:strbranch to commit on
committer:GitModifierthe committer information
msg:strthe commit message
m_exec: int =

Undocumented

m_regular: int =

Undocumented

m_symlink: int =

Undocumented

def _do_data(self, fd, size):

Undocumented

def _do_file(self, filename, mode, fd, size):

Undocumented

_bufsize: int =

Undocumented

_fi =

Undocumented

_out =

Undocumented

_repo =

Undocumented