Reflog
Object Hierarchy:
Description:
[ CCode ( ref_function = "ggit_reflog_ref" , type_id = "ggit_reflog_get_type ()" , unref_function = "ggit_reflog_unref" ) ]
[ Compact ]
public class Reflog
Content:
Methods:
- public unowned Reflog? @ref ()
Atomically increments the reference count of
this by one.
- public bool append (OId oid, Signature committer, string message) throws Error
Creates a reflog entry.
- public uint get_entry_count ()
Gets the number of log entries in this
.
- public ReflogEntry? get_entry_from_index (uint idx)
Gets the ReflogEntry
at idx
in this, or null if not found.
- public bool rename (string new_name) throws Error
Renames the reflog for to new_name
, on error
throws is set.
- public void unref ()
Atomically decrements the reference count of
this by one.
- public bool write () throws Error
Write the reflog to disk.