Ggit.Tree¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Ggit.Object (2), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| get(i) | |
| get_by_name(name) | |
| get_by_path(path) | |
| get_id() | |
| size() | |
| walk(mode, callback, *user_data) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
| Inherited: | Ggit.Native (1) | 
|---|
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Ggit.Tree(**kwargs)¶
- Bases: - Ggit.Object- Abstract: - No - Structure: - Ggit.TreeClass- Represents a tree object. - 
get(i)¶
- Parameters: - i ( - int) – the index of the entry.- Returns: - a - Ggit.TreeEntryor- None.- Return type: - Ggit.TreeEntryor- None- Get a tree entry by index. 
 - 
get_by_name(name)¶
- Parameters: - name ( - str) – a filename.- Returns: - a - Ggit.TreeEntryor- None.- Return type: - Ggit.TreeEntryor- None- Get a tree entry by name. 
 - 
get_by_path(path)¶
- Parameters: - path ( - str) – a path.- Raises: - GLib.Error- Returns: - a - Ggit.TreeEntryor- None.- Return type: - Ggit.TreeEntryor- None- Retrieves a tree entry contained in a tree or in any of its subtrees, given its relative path. 
 - 
size()¶
- Returns: - the number of entries in the tree. - Return type: - int- Get the number of entries in the tree. 
 - 
walk(mode, callback, *user_data)¶
- Parameters: - mode (Ggit.TreeWalkMode) – the walking order.
- callback (Ggit.TreeWalkCallback) – the callback to call for each entry.
- user_data (objectorNone) – user data for the callback.
 - Raises: - Walk all the entries of a tree object recursively (resolving and walking subtrees of the tree as needed). The error will be set to the error returned by callback (if any). 
- mode (
 
-