Ggit.TreeBuilder¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ggit.TreeBuilder(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a tree object.
- clear()¶
Clear all entries in the tree builder.
- get_entry(path)¶
- Parameters:
path (
str
) – the path to remove.- Returns:
the #GGitTreeEntry or
None
if no such entry exists.- Return type:
Get an entry by path.
- insert(filename, oid, file_mode)¶
- Parameters:
filename (
str
) – the file name.file_mode (
Ggit.FileMode
) – aGgit.FileMode
.
- Raises:
- Returns:
a
Ggit.TreeEntry
orNone
.- Return type:
Insert a file with a given blob in the tree builder. If the tree builder already contains an entry for the given file, then this entry will be overwritten.
Note that the returned
Ggit.TreeEntry
is bound to the lifetime of the tree builder and cannot be used after the tree builder has been freed.