Get a #GgitIndexEntry by index. Note that the returned #GgitIndexEntry is only valid as long as:
Changes to the #GgitIndexEntry will be reflected in the index once written back to disk using ggit_index_write().
the index of the entry.
Get a #GgitIndexEntry by index. Note that the returned #GgitIndexEntry is only valid as long as:
Changes to the #GgitIndexEntry will be reflected in the index once written back to disk using ggit_index_write().
stage
indicates the stage to search the file for. Stages are used in the
index when merge conflicts occur, such that multiple versions of the same
file can be represented in the index. Stage 0 is associated with the working
tree, while stages 1 to 3 are associated with the various versions of the
file in a merge conflict. The special value -1 can be used to match the first
file encountered in any stage.
Atomically increments the reference count of entries
by one.
This function is MT-safe and may be called from any thread.
Get the number of #GgitIndexEntry entries.
Atomically decrements the reference count of entries
by one.
If the reference count drops to 0, entries
is freed.
Represents the entries in an index object.