Class
GgitRef
Description [src]
class Ggit.Ref : Ggit.Native
{
/* No available fields */
}
Reprensents a git reference.
Functions
ggit_ref_is_valid_name
Check if the given name
is a valid name for a reference. Note that name
should be the full ref name (including prefixes).
Instance methods
ggit_ref_get_reference_type
Gets the type of ref
. Either direct (#GGIT_REF_OID) or
symbolic (#GGIT_REF_SYMBOLIC).
ggit_ref_get_symbolic_target
Get full name to the reference pointed to by a symbolic reference. Only available if the reference is symbolic.
ggit_ref_get_target
Get the OID pointed to by a direct reference. Only available if the reference is direct (i.e. an object id reference, not a symbolic one).
ggit_ref_set_symbolic_target
Create a new reference with the same name as the given reference but a different symbolic target. The reference must be a symbolic reference, otherwise this will fail.
ggit_ref_set_target
Create a new reference with the same name as the given reference but a different OID target. The reference must be a direct reference, otherwise this will fail.
Properties
Properties inherited from GgitNative (1)
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.