Functions
ggit_oid_copy ()
GgitOId *
ggit_oid_copy (GgitOId *oid);
Copies oid
into a newly allocated GgitOId.
Returns
a newly allocated GgitOId.
[transfer full][nullable]
ggit_oid_free ()
void
ggit_oid_free (GgitOId *oid);
Frees oid
.
ggit_oid_new_from_string ()
GgitOId *
ggit_oid_new_from_string (const gchar *str);
Parses a hex formatted object id into a GgitOId.
Returns
a newly allocated GgitOId or NULL on error.
[transfer full][nullable]
ggit_oid_new_from_raw ()
GgitOId *
ggit_oid_new_from_raw (const guchar *raw);
Creates a new GgitOId from a raw oid.
Returns
a newly allocated GgitOId or NULL on error.
[transfer full][nullable]
ggit_oid_compare ()
gint
ggit_oid_compare (GgitOId *a,
GgitOId *b);
Compare two GgitOId structures.
Returns
<0, 0, >0 if a < b, a == b, a > b.
ggit_oid_to_string ()
gchar *
ggit_oid_to_string (GgitOId *oid);
Converts oid
into a readable string.
Returns
a newly allocated string representing oid
or NULL.
[transfer full][nullable]
ggit_oid_hash ()
guint
ggit_oid_hash (GgitOId const *oid);
Computes a hash value for a git object identifier.
ggit_oid_equal ()
gboolean
ggit_oid_equal (GgitOId const *a,
GgitOId const *b);
Compares two GgitOId for equality.
Returns
TRUE if a
and b
are equal, FALSE otherwise