Index
Object Hierarchy:
Description:
[
CCode ( type_id =
"ggit_index_get_type ()" ) ]
public class Index :
Native,
Initable
Represents an index object.
Content:
Properties:
- public File file { owned get; construct; }
Static methods:
Creation methods:
Methods:
- public bool add (IndexEntry entry) throws Error
Add a file to the index.
- public bool add_file (File file) throws Error
Add a file to the index.
- public bool add_path (string path) throws Error
Add a file to the index by path.
- public IndexEntries? get_entries ()
Get the index entries enumerator.
- public IndexEntriesResolveUndo? get_entries_resolve_undo ()
Get the resolve undo entries enumerator.
- public Repository? get_owner ()
- public bool has_conflicts ()
Get whether the index has any conflicts.
- public bool read (bool force) throws Error
Update the contents of an existing index object in memory by reading
from the hard disk.
- public bool remove (File file, int stage) throws Error
Remove a file from the index (specified by position).
- public bool write () throws Error
Write an existing index object from memory back to disk using an
atomic file lock.
- public OId? write_tree () throws Error
Write a new tree object to disk containing a representation of the
current state of the index.
- public OId? write_tree_to (Repository repository) throws Error
Write a new tree object to repository
containing a
representation of the current state of the index.
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
All known members inherited from interface GLib.Initable