## GgitTreeEntry GgitTreeEntry |

## Synopsis

                        GgitTreeEntry;
    enum                GgitFileMode;
    GgitTreeEntry *     ggit_tree_entry_ref                 (GgitTreeEntry *entry);
    void                ggit_tree_entry_unref               (GgitTreeEntry *entry);
    GgitFileMode        ggit_tree_entry_get_file_mode       (GgitTreeEntry *entry);
    GgitOId *           ggit_tree_entry_get_id              (GgitTreeEntry *entry);
    const gchar *       ggit_tree_entry_get_name            (GgitTreeEntry *entry);
    GType               ggit_tree_entry_get_object_type     (GgitTreeEntry *entry);

## Object Hierarchy

      GBoxed
       +----GgitTreeEntry

      GEnum
       +----GgitFileMode

## Description

## Details

### GgitTreeEntry

    typedef struct _GgitTreeEntry GgitTreeEntry;

Represents an entry in a tree.

### enum GgitFileMode

    typedef enum {
    	GGIT_FILE_MODE_NEW             = 0000000,
    	GGIT_FILE_MODE_TREE            = 0040000,
    	GGIT_FILE_MODE_BLOB            = 0100644,
    	GGIT_FILE_MODE_BLOB_EXECUTABLE = 0100755,
    	GGIT_FILE_MODE_LINK            = 0120000,
    	GGIT_FILE_MODE_COMMIT          = 0160000
    } GgitFileMode;

`GGIT_FILE_MODE_NEW` |
`GGIT_FILE_MODE_TREE` |
`GGIT_FILE_MODE_BLOB` |
`GGIT_FILE_MODE_BLOB_EXECUTABLE` |
`GGIT_FILE_MODE_LINK` |
`GGIT_FILE_MODE_COMMIT` |

### ggit_tree_entry_ref ()

    GgitTreeEntry *     ggit_tree_entry_ref                 (GgitTreeEntry *entry);

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

`entry` : | a GgitTreeEntry.
Returns : | a GgitTreeEntry. [transfer none]

### ggit_tree_entry_unref ()

    void                ggit_tree_entry_unref               (GgitTreeEntry *entry);

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

`entry` : | a GgitTreeEntry.

### ggit_tree_entry_get_file_mode ()

    GgitFileMode        ggit_tree_entry_get_file_mode       (GgitTreeEntry *entry);

Gets the GgitFileMode of a tree entry.

`entry` : | a GgitTreeEntry.
Returns : | the GgitFileMode of a tree entry.

### ggit_tree_entry_get_id ()

    GgitOId *           ggit_tree_entry_get_id              (GgitTreeEntry *entry);

Get the GgitOId of the entry.

`entry` : | a GgitTreeEntry.
Returns : | a GgitOId. [transfer full]

### ggit_tree_entry_get_name ()

    const gchar *       ggit_tree_entry_get_name            (GgitTreeEntry *entry);

Get the name of the tree entry.

`entry` : | a GgitTreeEntry.
Returns : | the name of the tree entry.

### ggit_tree_entry_get_object_type ()

    GType               ggit_tree_entry_get_object_type     (GgitTreeEntry *entry);

Get the type of the tree entry object.

`entry` : | a GgitTreeEntry.
Returns : | a GType.