Ggit.TreeBuilder¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| clear() | |
| get_entry(path) | |
| insert(filename, oid, file_mode) | |
| remove(path) | |
| write() | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
| Inherited: | Ggit.Native (1) | 
|---|
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Ggit.TreeBuilder(**kwargs)¶
- Bases: - Ggit.Native- Abstract: - No - Structure: - Ggit.TreeBuilderClass- 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 - Noneif no such entry exists.- Return type: - Ggit.TreeEntryor- None- Get an entry by path. 
 - 
insert(filename, oid, file_mode)¶
- Parameters: - filename (str) – the file name.
- oid (Ggit.OId) – theGgit.OIdof the file blob to insert.
- file_mode (Ggit.FileMode) – aGgit.FileMode.
 - Raises: - Returns: - a - Ggit.TreeEntryor- None.- 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.TreeEntryis bound to the lifetime of the tree builder and cannot be used after the tree builder has been freed.
- filename (
 - 
remove(path)¶
- Parameters: - path ( - str) – the path to remove.- Raises: - GLib.Error- Remove an entry from the builder by path. 
 
-