GgitReflog

GgitReflog

Synopsis

                    GgitReflog;
GgitReflog *        ggit_reflog_ref                     (GgitReflog *reflog);
void                ggit_reflog_unref                   (GgitReflog *reflog);
guint               ggit_reflog_get_entry_count         (GgitReflog *reflog);
GgitReflogEntry *   ggit_reflog_get_entry_from_index    (GgitReflog *reflog,
                                                         guint idx);

Object Hierarchy

  GBoxed
   +----GgitReflog

Description

Details

GgitReflog

typedef struct _GgitReflog GgitReflog;

Represents a reflog.


ggit_reflog_ref ()

GgitReflog *        ggit_reflog_ref                     (GgitReflog *reflog);

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

reflog :

a GgitReflog.

Returns :

the passed in GgitReflog. [transfer none]

ggit_reflog_unref ()

void                ggit_reflog_unref                   (GgitReflog *reflog);

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

reflog :

a GgitReflog.

ggit_reflog_get_entry_count ()

guint               ggit_reflog_get_entry_count         (GgitReflog *reflog);

Gets the number of log entries in reflog.

reflog :

a GgitReflog.

Returns :

the number of log entries.

ggit_reflog_get_entry_from_index ()

GgitReflogEntry *   ggit_reflog_get_entry_from_index    (GgitReflog *reflog,
                                                         guint idx);

Gets the GgitReflogEntry at idx in reflog, or NULL if not found.

reflog :

a GgitReflog.

idx :

the position to lookup.

Returns :

the reflog entry at the index, or NULL if not found.