Ggit.TreeEntry

Fields

None

Methods

get_file_mode ()

get_id ()

get_name ()

get_object_type ()

ref ()

unref ()

Details

class Ggit.TreeEntry

Represents an entry in a tree.

get_file_mode()
Returns:

the Ggit.FileMode of a tree entry.

Return type:

Ggit.FileMode

Gets the Ggit.FileMode of a tree entry.

get_id()
Returns:

a Ggit.OId or None.

Return type:

Ggit.OId or None

Get the Ggit.OId of the entry.

get_name()
Returns:

the name of the tree entry or None.

Return type:

str or None

Get the name of the tree entry.

get_object_type()
Returns:

a GObject.GType.

Return type:

GObject.GType

Get the type of the tree entry object.

ref()
Returns:

a Ggit.TreeEntry or None.

Return type:

Ggit.TreeEntry or None

Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.

unref()

Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.