## GgitIndexEntryResolveUndo GgitIndexEntryResolveUndo |

## Synopsis

                        GgitIndexEntriesResolveUndo;
                        GgitIndexEntryResolveUndo;
    GgitIndexEntryResolveUndo * ggit_index_entries_resolve_undo_get
                                                            (GgitIndexEntriesResolveUndo *entries,
                                                             guint idx);
    GgitIndexEntryResolveUndo * ggit_index_entries_resolve_undo_get_by_file
                                                            (GgitIndexEntriesResolveUndo *entries,
                                                             GFile *file);
    GgitIndexEntriesResolveUndo * ggit_index_entries_resolve_undo_ref
                                                            (GgitIndexEntriesResolveUndo *entries);
    void                ggit_index_entries_resolve_undo_unref
                                                            (GgitIndexEntriesResolveUndo *entries);
    guint               ggit_index_entries_resolve_undo_size
                                                            (GgitIndexEntriesResolveUndo *entries);
    GgitIndexEntryResolveUndo * ggit_index_entry_resolve_undo_ref
                                                            (GgitIndexEntryResolveUndo *entry);
    void                ggit_index_entry_resolve_undo_unref (GgitIndexEntryResolveUndo *entry);
    guint               ggit_index_entry_resolve_undo_get_mode
                                                            (GgitIndexEntryResolveUndo *entry,
                                                             gint stage);
    GgitOId *           ggit_index_entry_resolve_undo_get_id
                                                            (GgitIndexEntryResolveUndo *entry,
                                                             gint stage);
    GFile *             ggit_index_entry_resolve_undo_get_file
                                                            (GgitIndexEntryResolveUndo *entry);

## Object Hierarchy

      GBoxed
       +----GgitIndexEntriesResolveUndo

      GBoxed
       +----GgitIndexEntryResolveUndo

## Description

## Details

### GgitIndexEntriesResolveUndo

    typedef struct _GgitIndexEntriesResolveUndo GgitIndexEntriesResolveUndo;

Represents the resolve undo entries in an index object.

### GgitIndexEntryResolveUndo

    typedef struct _GgitIndexEntryResolveUndo GgitIndexEntryResolveUndo;

Represents an resolve undo index entry object.

### ggit_index_entries_resolve_undo_get ()

    GgitIndexEntryResolveUndo * ggit_index_entries_resolve_undo_get
                                                            (GgitIndexEntriesResolveUndo *entries,
                                                             guint idx);

Get a GgitIndexEntryResolveUndo by index. Note that the returned GgitIndexEntryResolveUndo is _only_ valid as long as:

1) The associated index has been closed 2) The entry has not been removed (see `ggit_index_remove()`) 3) The index has not been refreshed (see `ggit_index_read()`)

`entries` : | a GgitIndexEntriesResolveUndo.
`idx` : | the index of the entry.
Returns : | a GgitIndexEntryResolveUndo. [transfer full]

### ggit_index_entries_resolve_undo_get_by_file ()

    GgitIndexEntryResolveUndo * ggit_index_entries_resolve_undo_get_by_file
                                                            (GgitIndexEntriesResolveUndo *entries,
                                                             GFile *file);

Get an resolve_undo entry specified by path. The returned entry is read only and should not be modified by the caller. If the entry could not be found, `NULL` is returned.

`entries` : | a GgitIndexEntriesResolveUndo.
`file` : | a GFile.
Returns : | a GgitIndexEntryResolveUndo or `NULL`. [transfer full]

### ggit_index_entries_resolve_undo_ref ()

    GgitIndexEntriesResolveUndo * ggit_index_entries_resolve_undo_ref
                                                            (GgitIndexEntriesResolveUndo *entries);

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

`entries` : | a GgitIndexEntriesResolveUndo.
Returns : | a GgitIndexEntriesResolveUndo. [transfer none]

### ggit_index_entries_resolve_undo_unref ()

    void                ggit_index_entries_resolve_undo_unref
                                                            (GgitIndexEntriesResolveUndo *entries);

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

`entries` : | a GgitIndexEntriesResolveUndo.

### ggit_index_entries_resolve_undo_size ()

    guint               ggit_index_entries_resolve_undo_size
                                                            (GgitIndexEntriesResolveUndo *entries);

Get the number of GgitIndexEntryResolveUndo entries.

`entries` : | a GgitIndexEntriesResolveUndo.
Returns : | the number of entries.

### ggit_index_entry_resolve_undo_ref ()

    GgitIndexEntryResolveUndo * ggit_index_entry_resolve_undo_ref
                                                            (GgitIndexEntryResolveUndo *entry);

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

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

### ggit_index_entry_resolve_undo_unref ()

    void                ggit_index_entry_resolve_undo_unref (GgitIndexEntryResolveUndo *entry);

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

`entry` : | a GgitIndexEntryResolveUndo.

### ggit_index_entry_resolve_undo_get_mode ()

    guint               ggit_index_entry_resolve_undo_get_mode
                                                            (GgitIndexEntryResolveUndo *entry,
                                                             gint stage);

Get the mode of the index entry. The returned mode contains the modes from stage 1, 2 and 3.

`entry` : | a GgitIndexEntryResolveUndo.
`stage` : | the stage (0, 1 or 2).
Returns : | the mode.

### ggit_index_entry_resolve_undo_get_id ()

    GgitOId *           ggit_index_entry_resolve_undo_get_id
                                                            (GgitIndexEntryResolveUndo *entry,
                                                             gint stage);

Get the oid of the index entry.

`entry` : | a GgitIndexEntryResolveUndo.
`stage` : | the stage (0, 1 or 2).
Returns : | the oid.

### ggit_index_entry_resolve_undo_get_file ()

    GFile *             ggit_index_entry_resolve_undo_get_file
                                                            (GgitIndexEntryResolveUndo *entry);

Get the file of the index entry.

`entry` : | a GgitIndexEntryResolveUndo.
Returns : | a GFile. [transfer full]