Ref
Object Hierarchy:
Description:
[
CCode ( type_id =
"ggit_ref_get_type ()" ) ]
public class Ref :
Native
Reprensents a git reference.
Content:
Static methods:
Creation methods:
Methods:
- public void @delete () throws Error
Deletes this.
- public void delete_log () throws Error
Deletes the log for this, on error
throws is set.
- public Reflog? get_log () throws Error
- public unowned string? get_name ()
Gets the full name of this.
- public Repository? get_owner ()
Gets the repository where this
resides.
- public RefType get_reference_type ()
Gets the type of this.
- public unowned string? get_shorthand ()
Gets the shorthand name of this.
- public unowned string? get_symbolic_target ()
Get full name to the reference pointed to by a symbolic reference.
- public OId? get_target ()
Get the OID pointed to by a direct reference.
- public bool has_log ()
Get whether this has an existing
log.
- public bool is_branch ()
Check whether the reference is a branch.
- public bool is_note ()
Check whether the reference is a note.
- public bool is_remote ()
Check whether the reference is a remote.
- public bool is_tag ()
Check whether the reference is a tag.
- public Object? lookup () throws Error
Convenient method to resolve a reference to an object.
- public Ref? rename (string new_name, bool force, string log_message) throws Error
Rename an existing reference.
- public Ref? resolve () throws Error
Resolves a symbolic reference.
- public Ref? set_symbolic_target (string target, string log_message) throws Error
Create a new reference with the same name as the given reference but a
different symbolic target.
- public Ref? set_target (OId oid, string log_message) throws Error
Create a new reference with the same name as the given reference but a
different OID target.
- public unowned string? to_string ()
Get a string representation of the ref.
Inherited Members:
All known members inherited from class Ggit.Native
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref