![]() |
![]() |
![]() |
libgit2-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GgitOId; GgitOId * ggit_oid_copy (GgitOId *oid
); void ggit_oid_free (GgitOId *oid
); GgitOId * ggit_oid_new_from_string (const gchar *str
); GgitOId * ggit_oid_new_from_raw (const guchar *raw
); gint ggit_oid_compare (GgitOId *a
,GgitOId *b
); gchar * ggit_oid_to_string (GgitOId *oid
); guint ggit_oid_hash (GgitOId const *oid
); gboolean ggit_oid_equal (GgitOId const *a
,GgitOId const *b
);
GgitOId * ggit_oid_new_from_string (const gchar *str
);
Parses a hex formatted object id into a GgitOId.
|
input hex string; must be pointing at the start of the hex sequence and have at least the number of bytes needed for an oid encoded in hex (40 bytes). |
Returns : |
a newly allocated GgitOId or NULL on error. [transfer full]
|
GgitOId * ggit_oid_new_from_raw (const guchar *raw
);
Creates a new GgitOId from a raw oid.
|
the raw input bytes to be copied. |
Returns : |
a newly allocated GgitOId. [transfer full] |
gchar * ggit_oid_to_string (GgitOId *oid
);
Converts oid
into a readable string.
|
a GgitOId. |
Returns : |
a newly allocated string representing oid . [transfer full]
|
guint ggit_oid_hash (GgitOId const *oid
);
Computes a hash value for a git object identifier.
|
a GgitOId. |
Returns : |
the hash value |